Files
wg-ui/Dockerfile
T
Thomas Frössman 4f57eac902 Use Go embed.FS instead of external tool to embed assets (#135)
* Use Go embed.FS instead of external tool to embed assets

* remove go-bindata from dockerfiles and bump ci to golang 1.16.x

* remove more go-bindata related stuff

Co-authored-by: Markus Viitamäki <markus.viitamaki@embark-studios.com>
2021-07-23 15:28:35 +02:00

20 lines
390 B
Docker

FROM docker.io/node:12 AS ui
WORKDIR /ui
COPY ui/package.json ui/package-lock.json /ui/
RUN npm install
COPY ui .
RUN npm run build
FROM docker.io/golang:latest AS build
WORKDIR /wg
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
COPY --from=ui /ui/dist ui/dist
RUN go install .
FROM gcr.io/distroless/base
COPY --from=build /go/bin/wireguard-ui /
ENTRYPOINT [ "/wireguard-ui" ]