certificates/autocert/examples/hello-mtls/go/server/Dockerfile.server
2019-02-11 20:27:41 -08:00

10 lines
197 B
Text

# build stage
FROM golang:alpine AS build-env
RUN mkdir /src
ADD server.go /src
RUN cd /src && go build -o server
# final stage
FROM alpine
COPY --from=build-env /src/server .
ENTRYPOINT ./server