FROM gcr.io/gcp-runtimes/go1-builder:1.13 as builder ENV CGO_ENABLED=0 WORKDIR /go/src/ COPY image/go.mod . RUN /usr/local/go/bin/go mod download COPY main.go . RUN /usr/local/go/bin/go build -v -o /usr/local/bin/config-function ./ FROM alpine:latest COPY --from=builder /usr/local/bin/config-function /usr/local/bin/config-function CMD ["/usr/local/bin/config-function"]