We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7a4c297 + 5b55cc1 commit 2dd5ee4Copy full SHA for 2dd5ee4
pytorch/Dockerfile
@@ -229,7 +229,13 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missin
229
python3-venv && \
230
rm -rf /var/lib/apt/lists/*
231
232
-RUN python3 -m venv /home/venv
+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
239
240
ENV PATH="/home/venv/bin:$PATH"
241
pytorch/venv-requirements.txt
@@ -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