7697d7561d
Recently, Docker.io imposed container registry pull limits, and we have exceeded them. This has impacted continuous-integration testing in this repository. This change updates our base Go images from those hosted on docker.io to gcr.io in order to circumnavigate pull restrictions. Change-Id: I2a990846b1a49010ff2a403d99413d8162322804 Signed-off-by: Drew Walters <andrew.walters@att.com>
12 lines
373 B
Docker
12 lines
373 B
Docker
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"]
|