Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
dchourasia committed May 29, 2024
2 parents 019ca6a + b211247 commit 4fa8b7a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit 4fa8b7a

Please sign in to comment.