We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5493794 commit cddec03Copy full SHA for cddec03
util/container/Dockerfile
@@ -81,7 +81,11 @@ ARG VIRTUAL_ENV="/root/.venvs/snitch_cluster"
81
RUN python${PYTHON_VERSION} -m venv ${VIRTUAL_ENV}
82
83
# Upgrade pip and install packages using the virtual environment's pip
84
+# Don't cache pip files to avoid polluting the docker container
85
+# Install torch from the cpu only index to avoid installing the GPU versio
86
+ARG PIP_NO_CACHE_DIR=1
87
RUN ${VIRTUAL_ENV}/bin/pip install --upgrade pip && \
88
+ ${VIRTUAL_ENV}/bin/pip install torch --index-url https://download.pytorch.org/whl/cpu && \
89
${VIRTUAL_ENV}/bin/pip install .
90
91
# Copy the tools from the builder stage
0 commit comments