1515# ##############################################################################
1616# Stage 1: Create the developer image for the BUILDPLATFORM only
1717# ##############################################################################
18- ARG GOLANG_VERSION=1.21
18+ ARG GOLANG_VERSION=1.22
1919ARG BUILD_BASE=develop
20- FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi8 /go-toolset:$GOLANG_VERSION AS develop
20+ FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi9 /go-toolset:$GOLANG_VERSION AS develop
2121
2222ARG PROTOC_VERSION=21.5
2323
@@ -31,8 +31,8 @@ RUN --mount=type=cache,target=/root/.cache/dnf:rw \
3131 nodejs \
3232 python3.11 \
3333 python3.11-pip \
34- && ln -sf /usr/bin/python3 /usr/bin/python \
35- && ln -sf /usr/bin/pip3 /usr/bin/pip \
34+ && alternatives --install /usr/bin/python python /usr/bin/python3.11 1 \
35+ && alternatives --install /usr/bin/pip pip /usr/bin/pip3.11 1 \
3636 && true
3737
3838# Install pre-commit
@@ -147,7 +147,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
147147# ##############################################################################
148148# Stage 3: Copy build assets to create the smallest final runtime image
149149# ##############################################################################
150- FROM registry.access.redhat.com/ubi8 /ubi-minimal:latest as runtime
150+ FROM registry.access.redhat.com/ubi9 /ubi-minimal:latest as runtime
151151
152152ARG USER=2000
153153
@@ -156,14 +156,14 @@ USER root
156156# install python to convert keras to tf
157157# NOTE: tensorflow not supported on PowerPC (ppc64le) or System Z (s390x) https://github.com/tensorflow/tensorflow/issues/46181
158158RUN --mount=type=cache,target=/root/.cache/microdnf:rw \
159- microdnf install --setopt=cachedir=/root/.cache/microdnf --setopt=ubi-8 -appstream-rpms.module_hotfixes=1 \
159+ microdnf install --setopt=cachedir=/root/.cache/microdnf --setopt=ubi-9 -appstream-rpms.module_hotfixes=1 \
160160 gcc \
161161 gcc-c++ \
162162 python3.11-devel \
163163 python3.11 \
164164 python3.11-pip \
165- && ln -sf /usr/bin/python3 /usr/bin/python \
166- && ln -sf /usr/bin/pip3 /usr/bin/pip \
165+ && alternatives --install /usr/bin/python python /usr/bin/python3.11 1 \
166+ && alternatives --install /usr/bin/pip pip /usr/bin/pip3.11 1 \
167167 && true
168168
169169# need to upgrade pip and install wheel before installing grpcio, before installing tensorflow on aarch64
0 commit comments