Fix build

This commit is contained in:
Daniel Lundin
2019-06-06 20:09:33 +02:00
parent a4f0e1f98e
commit 1158b41939
+8 -8
View File
@@ -1,18 +1,18 @@
FROM node:8-alpine AS ui
WORKDIR /build
COPY . .
RUN npm install --prefix=ui
RUN npm run --prefix=ui build
FROM node:12-alpine AS ui
WORKDIR /ui
COPY ui .
RUN npm install
RUN npm run build
FROM golang:1.12 AS build
WORKDIR /build
RUN go get -u github.com/go-bindata/go-bindata/... &&\
WORKDIR /wg
RUN go get github.com/go-bindata/go-bindata/... &&\
go get github.com/elazarl/go-bindata-assetfs/...
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
COPY --from=ui /build/ui/public /build/ui/public
COPY --from=ui /ui/public ui/public
RUN go-bindata-assetfs -prefix ui/public ui/public &&\
go install .