修改超时时间

This commit is contained in:
sophie committed 2026-05-16 15:39:38 +08:00
1 parent 729ec2908d
commit cbc9f070ec
1 file changed
+3 -1
+3 -1
View File
@@ -4,6 +4,8 @@ FROM ${PYTHON_BASE_IMAGE}
ARG APT_MIRROR=https://mirrors.aliyun.com
ARG PIP_INDEX_URL=https://mirrors.aliyun.com/pypi/simple
ARG PIP_EXTRA_INDEX_URL
ARG PIP_TIMEOUT=300
ARG PIP_RETRIES=15
WORKDIR /app
@@ -29,7 +31,7 @@ RUN set -eux; \
# Install Python dependencies
COPY backend/requirements.txt .
RUN set -eux; \
PIP_ARGS="--no-cache-dir --retries 10 --timeout 60"; \
PIP_ARGS="--no-cache-dir --retries ${PIP_RETRIES} --timeout ${PIP_TIMEOUT}"; \
if [ -n "${PIP_INDEX_URL:-}" ]; then \
PIP_ARGS="$PIP_ARGS --index-url ${PIP_INDEX_URL}"; \
fi; \