15
15
# ##############################################################################
16
16
# Stage 1: Create the developer image for the BUILDPLATFORM only
17
17
# ##############################################################################
18
- ARG GOLANG_VERSION=1.21
19
- FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi8 /go-toolset:$GOLANG_VERSION AS develop
18
+ ARG GOLANG_VERSION=1.22
19
+ FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi9 /go-toolset:$GOLANG_VERSION AS develop
20
20
21
21
ARG PROTOC_VERSION=21.5
22
22
@@ -30,8 +30,8 @@ RUN --mount=type=cache,target=/root/.cache/dnf:rw \
30
30
nodejs \
31
31
python3.11 \
32
32
python3.11-pip \
33
- && ln -sf /usr/bin/python3 /usr/bin/python \
34
- && ln -sf /usr/bin/pip3 /usr/bin/pip \
33
+ && alternatives --install /usr/bin/python python /usr/bin/python3.11 1 \
34
+ && alternatives --install /usr/bin/pip pip /usr/bin/pip3.11 1 \
35
35
&& true
36
36
37
37
# Install pre-commit
@@ -138,7 +138,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
138
138
# ##############################################################################
139
139
# Stage 3: Copy build assets to create the smallest final runtime image
140
140
# ##############################################################################
141
- FROM registry.access.redhat.com/ubi8 /ubi-minimal:latest as runtime
141
+ FROM registry.access.redhat.com/ubi9 /ubi-minimal:latest as runtime
142
142
143
143
ARG USER=2000
144
144
@@ -147,14 +147,14 @@ USER root
147
147
# install python to convert keras to tf
148
148
# NOTE: tensorflow not supported on PowerPC (ppc64le) or System Z (s390x) https://github.com/tensorflow/tensorflow/issues/46181
149
149
RUN --mount=type=cache,target=/root/.cache/microdnf:rw \
150
- microdnf install --setopt=cachedir=/root/.cache/microdnf \
150
+ microdnf install -y - -setopt=cachedir=/root/.cache/microdnf \
151
151
gcc \
152
152
gcc-c++ \
153
153
python3.11-devel \
154
154
python3.11 \
155
155
python3.11-pip \
156
- && ln -sf /usr/bin/python3 /usr/bin/python \
157
- && ln -sf /usr/bin/pip3 /usr/bin/pip \
156
+ && alternatives --install /usr/bin/python python /usr/bin/python3.11 1 \
157
+ && alternatives --install /usr/bin/pip pip /usr/bin/pip3.11 1 \
158
158
&& true
159
159
160
160
# need to upgrade pip and install wheel before installing grpcio, before installing tensorflow on aarch64
0 commit comments