update makefile and documentation (#74)

This commit is contained in:
Markus Viitamäki
2020-06-09 13:13:53 +02:00
committed by GitHub
parent bdf5423ad3
commit 558616a87c
4 changed files with 77 additions and 42 deletions
+5 -5
View File
@@ -5,17 +5,17 @@ RUN npm install
COPY ui .
RUN npm run build
FROM docker.io/golang:1.13 AS build
FROM docker.io/golang:1.14 AS build
WORKDIR /wg
RUN go get github.com/go-bindata/go-bindata/... &&\
go get github.com/elazarl/go-bindata-assetfs/...
RUN go get github.com/go-bindata/go-bindata/...
RUN go get github.com/elazarl/go-bindata-assetfs/...
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
COPY --from=ui /ui/dist ui/dist
RUN go-bindata-assetfs -prefix ui/dist ui/dist &&\
go install .
RUN go-bindata-assetfs -prefix ui/dist ui/dist
RUN go install .
FROM gcr.io/distroless/base
COPY --from=build /go/bin/wireguard-ui /