From 04c5dfb8e52ab254ff35565d949a405589dd3c9e Mon Sep 17 00:00:00 2001 From: James Busche Date: Tue, 21 May 2024 15:19:39 -0700 Subject: [PATCH] remove unused python39 Signed-off-by: James Busche --- build/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index c3c4836b4..d324910be 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -39,8 +39,7 @@ ARG SET_NUM_PROCESSES_TO_NUM_GPUS=True USER root -RUN dnf update -y \ - && dnf remove -y --disableplugin=subscription-manager \ +RUN dnf remove -y --disableplugin=subscription-manager \ subscription-manager \ # we install newer version of requests via pip python3.11-requests \ @@ -112,11 +111,15 @@ ENV LIBRARY_PATH="$CUDA_HOME/lib64/stubs" RUN dnf install -y python3.11 git \ && ln -s /usr/bin/python3.11 /bin/python \ && python -m ensurepip --upgrade \ + && dnf update -y \ && dnf clean all # Removes the example private key to avoid high severity vulnerability warning RUN rm -f /usr/share/doc/perl-Net-SSLeay/examples/server_key.pem +# Removes the python3.9 code to eliminate possible CVEs. Also removes dnf +RUN rpm -e $(dnf repoquery python3-* -q --installed) dnf python3 yum crypto-policies-scripts + WORKDIR /tmp COPY --from=wheel /tmp/*.whl /tmp/bdist_name /tmp/ RUN --mount=type=cache,target=/root/.cache/pip \