Update Dockerfile with qualified image names

This commit is contained in:
Leandro Lafin 2024-07-11 14:11:20 -03:00
parent 6d2cf6aa8d
commit ccf5bbad48
No known key found for this signature in database
GPG Key ID: 60C427B9DF40CB72
1 changed files with 2 additions and 2 deletions

View File

@ -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.19
ARG RUNTIME_IMAGE=docker.io/library/alpine:3.19
# 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