fix(photo-ai): retry and resume torch wheel downloads

This commit is contained in:
dev
2026-10-22 23:31:12 +03:00
parent d19611573f
commit 9f528ba98e
+2 -1
View File
@@ -21,7 +21,8 @@ RUN --mount=type=cache,target=/root/.cache/pip,sharing=locked \
pip install "typing-extensions==4.12.2" "numpy==2.2.6" pip install "typing-extensions==4.12.2" "numpy==2.2.6"
RUN --mount=type=cache,target=/root/.cache/pip,sharing=locked \ RUN --mount=type=cache,target=/root/.cache/pip,sharing=locked \
pip install torch torchvision --index-url ${TORCH_INDEX} pip install --timeout 120 --retries 15 --resume-retries 50 \
torch torchvision --index-url ${TORCH_INDEX}
RUN --mount=type=cache,target=/root/.cache/pip,sharing=locked \ RUN --mount=type=cache,target=/root/.cache/pip,sharing=locked \
pip install --upgrade setuptools wheel && \ pip install --upgrade setuptools wheel && \