优化国内构建的时间

This commit is contained in:
2025-12-07 17:16:29 +08:00
parent 9bfefd635c
commit e0fb6381d2
8 changed files with 158 additions and 7 deletions
+4
View File
@@ -1,5 +1,9 @@
FROM python:3.11-slim
WORKDIR /app
RUN mkdir -p /etc
RUN echo "[global]\nindex-url = https://mirrors.cloud.tencent.com/pypi/simple\n" > /etc/pip.conf
ENV PIP_INDEX_URL=https://mirrors.cloud.tencent.com/pypi/simple \
PIP_DEFAULT_TIMEOUT=120
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app app