Skip to content

Commit 5586f1f

Browse files
committed
fix the primary link for python must be /usr/bin/unversioned-python
1 parent 1928afc commit 5586f1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ 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
158158
RUN --mount=type=cache,target=/root/.cache/microdnf:rw \
159-
microdnf install --setopt=cachedir=/root/.cache/microdnf --setopt=ubi-9-appstream-rpms.module_hotfixes=1 \
159+
microdnf install -y --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-
&& alternatives --install /usr/bin/python python /usr/bin/python3.11 1 \
165+
&& alternatives --set python /usr/bin/python3.11 \
166166
&& alternatives --install /usr/bin/pip pip /usr/bin/pip3.11 1 \
167167
&& true
168168

0 commit comments

Comments
 (0)