forked from TrueCloudLab/certificates
3ba6e33791
Fixes #32
15 lines
405 B
Text
15 lines
405 B
Text
# build stage
|
|
FROM golang:alpine AS build-env
|
|
RUN apk update
|
|
RUN apk add git
|
|
|
|
WORKDIR /go/src/github.com/smallstep/certificates/autocert/examples/hello-mtls/go-grpc
|
|
ADD server/server.go .
|
|
COPY hello hello
|
|
RUN go get -d -v ./...
|
|
RUN go build -o server
|
|
|
|
# final stage
|
|
FROM alpine
|
|
COPY --from=build-env /go/src/github.com/smallstep/certificates/autocert/examples/hello-mtls/go-grpc/server .
|
|
CMD ["./server"]
|