11 lines
197 B
Text
11 lines
197 B
Text
|
# 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
|