Skip to content

Commit fcab0b7

Browse files
authored
update setuptools and pip to resolve trivy vulnerabilities (#380)
Signed-off-by: Srikanth Ramakrishna <srikanth.ramakrishna@intel.com>
1 parent 200ee78 commit fcab0b7

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

pytorch/Dockerfile

+7-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,13 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missin
229229
python3-venv && \
230230
rm -rf /var/lib/apt/lists/*
231231

232-
RUN python3 -m venv /home/venv
232+
WORKDIR /
233+
COPY venv-requirements.txt .
234+
235+
RUN python3 -m venv /home/venv && \
236+
/home/venv/bin/python -m pip install --no-cache-dir --upgrade pip && \
237+
/home/venv/bin/python -m pip install --no-cache-dir -r venv-requirements.txt && \
238+
rm -rf venv-requirements.txt
233239

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

pytorch/serving/torchserve-xpu-requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ torchvision==0.18.1+cxx11.abi
33
torchaudio==2.3.1+cxx11.abi
44
intel_extension_for_pytorch==2.3.110+xpu
55
--extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us
6-
numpy==1.26.4
6+
numpy==2.1.1
77
captum>=0.7.0
88
cython>=3.0.10
99
pynvml>=11.5.0

pytorch/venv-requirements.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
setuptools>=70.0.0
2+
psutil==6.0.0
3+
mkl==2024.2.1
4+
mkl-include==2024.2.1
5+
intel-openmp==2024.2.1

0 commit comments

Comments
 (0)