gobuch/cloud-provider/docker-sample-multistage/Dockerfile

12 lines
192 B
Docker
Raw Normal View History

2020-08-21 04:26:40 +00:00
FROM golang:1 as builder
WORKDIR /go/src/app
COPY *.go .
RUN CGO_ENABLED=0 go build .
####################################
FROM alpine
COPY --from=builder /go/src/app/app .
CMD [ "./app" ]