airshipctl/krm-functions/replacement-transformer/Dockerfile.sample
Roman Gorshunov 09e488a20e Update base Go builder image to 1.15
Change-Id: Iab2be7f207effe0556881641cdf5bbe14837c266
2021-04-08 22:18:18 +02:00

12 lines
373 B
Docker

FROM gcr.io/gcp-runtimes/go1-builder:1.15 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"]