Dockerfile.client 420 B

12345678910111213141516
  1. # build stage
  2. FROM golang:alpine AS build-env
  3. RUN apk update
  4. RUN apk add git
  5. RUN mkdir /src
  6. WORKDIR /go/src/github.com/smallstep/certificates/autocert/examples/hello-mtls/go-grpc
  7. ADD client/client.go .
  8. COPY hello hello
  9. RUN go get -d -v ./...
  10. RUN go build -o client
  11. # final stage
  12. FROM alpine
  13. COPY --from=build-env /go/src/github.com/smallstep/certificates/autocert/examples/hello-mtls/go-grpc/client .
  14. CMD ["./client"]