mirror of
https://github.com/Threnklyn/wg-ui.git
synced 2026-06-05 21:28:29 +02:00
update makefile and documentation (#74)
This commit is contained in:
+5
-5
@@ -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 /
|
||||
|
||||
Reference in New Issue
Block a user