mirror of
https://github.com/Threnklyn/wg-ui.git
synced 2026-06-03 20:28:28 +02:00
Build separate debug image. Switch from kaniko to buildah.
This commit is contained in:
+4
-3
@@ -1,10 +1,11 @@
|
||||
FROM node:12-alpine AS ui
|
||||
WORKDIR /ui
|
||||
COPY ui .
|
||||
COPY package.json package-lock.json /ui/
|
||||
RUN npm install
|
||||
COPY ui .
|
||||
RUN npm run build
|
||||
|
||||
FROM golang:1.12 AS build
|
||||
FROM golang:1.13 AS build
|
||||
WORKDIR /wg
|
||||
RUN go get github.com/go-bindata/go-bindata/... &&\
|
||||
go get github.com/elazarl/go-bindata-assetfs/...
|
||||
@@ -16,6 +17,6 @@ COPY --from=ui /ui/public ui/public
|
||||
RUN go-bindata-assetfs -prefix ui/public ui/public &&\
|
||||
go install .
|
||||
|
||||
FROM gcr.io/distroless/base:debug
|
||||
FROM gcr.io/distroless/base
|
||||
COPY --from=build /go/bin/wireguard-ui /
|
||||
ENTRYPOINT [ "/wireguard-ui" ]
|
||||
|
||||
Reference in New Issue
Block a user