mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-19 09:25:37 +00:00
11 lines
197 B
Docker
11 lines
197 B
Docker
|
# build stage
|
||
|
FROM golang:alpine AS build-env
|
||
|
RUN mkdir /src
|
||
|
ADD client.go /src
|
||
|
RUN cd /src && go build -o client
|
||
|
|
||
|
# final stage
|
||
|
FROM alpine
|
||
|
COPY --from=build-env /src/client .
|
||
|
ENTRYPOINT ./client
|