15
15
# ##############################################################################
16
16
# Stage 1: Create the developer image for the BUILDPLATFORM only
17
17
# ##############################################################################
18
- ARG GOLANG_VERSION=1.21
18
+ ARG GOLANG_VERSION=1.22
19
19
ARG 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
21
21
22
22
ARG PROTOC_VERSION=21.5
23
23
@@ -31,8 +31,8 @@ RUN --mount=type=cache,target=/root/.cache/dnf:rw \
31
31
nodejs \
32
32
python3.11 \
33
33
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 \
36
36
&& true
37
37
38
38
# Install pre-commit
@@ -147,7 +147,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
147
147
# ##############################################################################
148
148
# Stage 3: Copy build assets to create the smallest final runtime image
149
149
# ##############################################################################
150
- FROM registry.access.redhat.com/ubi8 /ubi-minimal:latest as runtime
150
+ FROM registry.access.redhat.com/ubi9 /ubi-minimal:latest as runtime
151
151
152
152
ARG USER=2000
153
153
@@ -156,14 +156,14 @@ USER root
156
156
# install python to convert keras to tf
157
157
# NOTE: tensorflow not supported on PowerPC (ppc64le) or System Z (s390x) https://github.com/tensorflow/tensorflow/issues/46181
158
158
RUN --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 \
160
160
gcc \
161
161
gcc-c++ \
162
162
python3.11-devel \
163
163
python3.11 \
164
164
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 \
167
167
&& true
168
168
169
169
# need to upgrade pip and install wheel before installing grpcio, before installing tensorflow on aarch64
0 commit comments