fix: 配置清华 PyPI 镜像加速 Python 依赖下载

This commit is contained in:
maoshen
2026-04-14 02:13:32 +00:00
parent 49ad7016ab
commit b9d1b43e53
5 changed files with 380 additions and 3 deletions

View File

@@ -14,9 +14,9 @@ RUN apt-get update && apt-get install \
-y --no-install-recommends && \
rm -rf /var/lib/apt/lists/*
# Install Python dependencies
# Install Python dependencies (use Tsinghua mirror for faster download in China)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
# Copy project
COPY . .