Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update setuptools and pip to resolve trivy vulnerabilities #380

Merged
merged 7 commits into from
Sep 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pytorch/Dockerfile
Original file line number Diff line number Diff line change
@@ -229,7 +229,13 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missin
python3-venv && \
rm -rf /var/lib/apt/lists/*

RUN python3 -m venv /home/venv
WORKDIR /
COPY venv-requirements.txt .

RUN python3 -m venv /home/venv && \
/home/venv/bin/python -m pip install --no-cache-dir --upgrade pip && \
/home/venv/bin/python -m pip install --no-cache-dir -r venv-requirements.txt && \
rm -rf venv-requirements.txt

ENV PATH="/home/venv/bin:$PATH"

2 changes: 1 addition & 1 deletion pytorch/serving/torchserve-xpu-requirements.txt
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ torchvision==0.18.1+cxx11.abi
torchaudio==2.3.1+cxx11.abi
intel_extension_for_pytorch==2.3.110+xpu
--extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us
numpy==1.26.4
numpy==2.1.1
captum>=0.7.0
cython>=3.0.10
pynvml>=11.5.0
5 changes: 5 additions & 0 deletions pytorch/venv-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
setuptools>=70.0.0
psutil==6.0.0
mkl==2024.2.1
mkl-include==2024.2.1
intel-openmp==2024.2.1