Files
protoplex/Dockerfile
2019-08-29 17:05:53 +02:00

17 lines
346 B
Docker

# build
FROM golang:1-alpine AS build
RUN apk add git
RUN mkdir -p /go/src/github.com/Pandentia
COPY ./ /go/src/github.com/Pandentia/protoplex
RUN go get github.com/Pandentia/protoplex/cmd/protoplex
# deploy
FROM alpine:latest
COPY --from=build /go/bin/protoplex /protoplex
USER 999
ENTRYPOINT ["/protoplex"]
EXPOSE 8443/tcp
STOPSIGNAL SIGINT