mirror of
https://github.com/SapphicCode/protoplex.git
synced 2025-09-26 19:31:23 +08:00
17 lines
346 B
Docker
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
|