fix: use domestic pip mirror for docker builds
Tests / lint (push) Has been cancelled
Tests / test (push) Has been cancelled

This commit is contained in:
Xiaoxia AI
2026-06-15 18:52:33 +08:00
parent be4b30f4da
commit 823faa4a52
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -1,8 +1,10 @@
FROM python:3.12-slim
WORKDIR /app
ENV PYTHONPATH=/app
ENV PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
ENV PIP_TRUSTED_HOST=pypi.tuna.tsinghua.edu.cn
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir --default-timeout=120 --retries 10 -r requirements.txt
COPY apps/api /app/apps/api
COPY packages /app/packages
WORKDIR /app/apps/api
+3 -1
View File
@@ -1,8 +1,10 @@
FROM python:3.12-slim
WORKDIR /app
ENV PYTHONPATH=/app
ENV PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
ENV PIP_TRUSTED_HOST=pypi.tuna.tsinghua.edu.cn
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir --default-timeout=120 --retries 10 -r requirements.txt
COPY apps/worker /app/apps/worker
COPY packages /app/packages
WORKDIR /app/apps/worker