From 028f6462c0df1e773af9234b85e3f334d0c9d21b Mon Sep 17 00:00:00 2001 From: Filippe Spolti Date: Mon, 27 May 2024 17:33:24 -0300 Subject: [PATCH] chore: Use latest ubi image tag (#506) #### Motivation #### Modifications #### Result 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