修改超时时间
This commit is contained in:
1 parent
729ec2908d
commit
cbc9f070ec
1 file changed
+3
-1
+3
-1
@@ -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; \
|
||||
|
||||
Reference in new issue
Block a user