From f97eb6434f5dacb5bfec60655ad38a4def071384 Mon Sep 17 00:00:00 2001 From: Spolti Date: Mon, 20 May 2024 14:42:33 -0300 Subject: [PATCH] Use latest tag to grab updates upon new build Signed-off-by: Spolti --- Dockerfile | 2 +- Dockerfile.develop | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3ef1be91..4066d26e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,7 +51,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \ ############################################################################### # Stage 2: Copy build assets to create the smallest final runtime image ############################################################################### -FROM registry.access.redhat.com/ubi8/ubi-minimal:8.9 AS runtime +FROM registry.access.redhat.com/ubi8/ubi-minimal:latest AS runtime ARG USER=2000 ARG IMAGE_VERSION diff --git a/Dockerfile.develop b/Dockerfile.develop index a8d6d1e0..b336b3dd 100644 --- a/Dockerfile.develop +++ b/Dockerfile.develop @@ -23,7 +23,8 @@ ############################################################################### # TODO: replace the "go_toolset" build stage once ubi8/go-toolset:1.21 is available -FROM registry.access.redhat.com/ubi8/ubi-minimal:8.9 as go-toolset +# the go-toolset 1.21 is based on ubi9, we need to update it in the base image as well. +FROM registry.access.redhat.com/ubi8/ubi-minimal:latest as go-toolset # https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope # We need TARGETOS and TARGETARCH (not BUILDOS and BUILDARCH) since the developer