Skip to content

Commit

Permalink
Update python version (#1537)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tansito authored Nov 18, 2024
1 parent fd4ffc0 commit 92267ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 5 additions & 2 deletions Dockerfile-ray-node
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM registry.access.redhat.com/ubi9-minimal:9.4@sha256:104cf11d890aeb7dd5728b7d7732e175a0e4018f1bb00d2faebcc8f6bf29bd52
RUN microdnf install -y python3.11-3.11.7 python3.11-devel-3.11.7 vim-enhanced-8.2.2637 wget-1.21.1 &&\
RUN microdnf install -y \
python3.11-3.11.9 \
python3.11-devel-3.11.9 \
vim-enhanced-8.2.2637 \
wget-1.21.1 &&\
microdnf clean all
RUN ln -s /usr/bin/python3.11 /usr/local/bin/python3 && \
ln -s /usr/bin/python3.11 /usr/local/bin/python &&\
Expand All @@ -20,7 +24,6 @@ WORKDIR /qs
# Need versions of pip/setuptools more recent than provided by UBI image
RUN python3.11 -m ensurepip --upgrade

# hadolint ignore=DL3013
RUN pip install --upgrade --no-cache-dir pip>=24.2 &&\
pip install --upgrade --no-cache-dir setuptools>=72.1.0

Expand Down
6 changes: 2 additions & 4 deletions gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ RUN mkdir ${MICRO_IMAGE_DIR}
COPY --from=base / ${MICRO_IMAGE_DIR}

# Install Python inside the BASE image
# hadolint ignore=DL3041
RUN dnf install --installroot ${MICRO_IMAGE_DIR} --nodocs -y \
python3.11-3.11.7 \
python3.11-devel-3.11.7 \
python3.11-3.11.9 \
python3.11-devel-3.11.9 \
libstdc++ &&\
dnf upgrade --installroot ${MICRO_IMAGE_DIR} --nodocs -y && \
dnf clean all --installroot ${MICRO_IMAGE_DIR}
Expand All @@ -26,7 +25,6 @@ RUN dnf install --installroot ${MICRO_IMAGE_DIR} --nodocs -y \
# and remaining application requirements will be installed
FROM scratch AS app
ARG MICRO_IMAGE_DIR
# hadolint ignore=DL3045
COPY --from=build ${MICRO_IMAGE_DIR}/ .

# create symlinks for python
Expand Down

0 comments on commit 92267ce

Please sign in to comment.