certificates/autocert/examples/hello-mtls/go/Dockerfile.server

11 lines
197 B
Text
Raw Normal View History

2019-01-25 01:22:36 +00:00
# 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