mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-15 18:12:59 +00:00
17 lines
420 B
Docker
17 lines
420 B
Docker
|
# build stage
|
||
|
FROM golang:alpine AS build-env
|
||
|
RUN apk update
|
||
|
RUN apk add git
|
||
|
RUN mkdir /src
|
||
|
|
||
|
WORKDIR /go/src/github.com/smallstep/certificates/autocert/examples/hello-mtls/go-grpc
|
||
|
ADD client/client.go .
|
||
|
COPY hello hello
|
||
|
RUN go get -d -v ./...
|
||
|
RUN go build -o client
|
||
|
|
||
|
# final stage
|
||
|
FROM alpine
|
||
|
COPY --from=build-env /go/src/github.com/smallstep/certificates/autocert/examples/hello-mtls/go-grpc/client .
|
||
|
CMD ["./client"]
|