Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Commit 8e2ae96

Browse files
committed
Reduce image size -Install torch for CPU
1 parent 3cd7072 commit 8e2ae96

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ ARG USE_CPU_TORCH=false
1111
# NOTE: Allow building without GPU so as to lower image size (disabled by default)
1212
RUN pip install -U pip && \
1313
if [ "${USE_CPU_TORCH}" = "true" ]; then \
14-
pip install --no-cache-dir -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu/; \
14+
echo "Installing Torch with CPU index URL..." && \
15+
pip install --no-cache-dir -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu; \
1516
else \
17+
echo "Installing Torch with GPU support..." && \
1618
pip install --no-cache-dir -r requirements.txt; \
1719
fi
1820

0 commit comments

Comments
 (0)