Files
wg-ui/Dockerfile
T
Fredrik Grönqvist b471f3dff5 Github actions & clean up to be able to do linting (#27)
* Github actions & clean up to be able to do linting

* renamed user

* pushing images to github packages

* Fixed tags
2019-12-19 13:03:03 +01:00

16 lines
401 B
Docker

FROM docker.io/golang:1.13 AS build
WORKDIR /wg
RUN go get github.com/go-bindata/go-bindata/... &&\
go get github.com/elazarl/go-bindata-assetfs/...
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
COPY /ui/dist ui/dist
RUN go-bindata-assetfs -prefix ui/dist ui/dist &&\
go install .
FROM gcr.io/distroless/base
COPY --from=build /go/bin/wireguard-ui /
ENTRYPOINT [ "/wireguard-ui" ]