From a84e9f4d26df13d600c57ca2f5f12afb0a6b5a49 Mon Sep 17 00:00:00 2001 From: Aigars Mahinovs Date: Mon, 21 Aug 2023 12:26:45 +0200 Subject: [PATCH] Update Dockerfile with qualified image names (#2138) Use fully qualified image names in the Dockerfile to simplify usage with alternate container build tools, like buildah and podman --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1c16fa09..60af5d8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ # This ARG has to be at the top, otherwise the docker daemon does not known what to do with FROM ${RUNTIME_IMAGE} -ARG RUNTIME_IMAGE=alpine:3.17.2 +ARG RUNTIME_IMAGE=docker.io/library/alpine:3.17.2 # All builds should be done using the platform native to the build node to allow # cache sharing of the go mod download step. # Go cross compilation is also faster than emulation the go compilation across # multiple platforms. -FROM --platform=${BUILDPLATFORM} golang:1.19-buster AS builder +FROM --platform=${BUILDPLATFORM} docker.io/library/golang:1.19-buster AS builder # Copy sources WORKDIR $GOPATH/src/github.com/oauth2-proxy/oauth2-proxy