mirror of
https://github.com/Threnklyn/wg-ui.git
synced 2026-06-07 14:03:33 +02:00
Fix build
This commit is contained in:
+8
-8
@@ -1,18 +1,18 @@
|
|||||||
FROM node:8-alpine AS ui
|
FROM node:12-alpine AS ui
|
||||||
WORKDIR /build
|
WORKDIR /ui
|
||||||
COPY . .
|
COPY ui .
|
||||||
RUN npm install --prefix=ui
|
RUN npm install
|
||||||
RUN npm run --prefix=ui build
|
RUN npm run build
|
||||||
|
|
||||||
FROM golang:1.12 AS build
|
FROM golang:1.12 AS build
|
||||||
WORKDIR /build
|
WORKDIR /wg
|
||||||
RUN go get -u github.com/go-bindata/go-bindata/... &&\
|
RUN go get github.com/go-bindata/go-bindata/... &&\
|
||||||
go get github.com/elazarl/go-bindata-assetfs/...
|
go get github.com/elazarl/go-bindata-assetfs/...
|
||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
COPY go.sum .
|
COPY go.sum .
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
COPY . .
|
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 &&\
|
RUN go-bindata-assetfs -prefix ui/public ui/public &&\
|
||||||
go install .
|
go install .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user