fix: add HTTPS pip mirror to api.Dockerfile to fix build failure

This commit is contained in:
CI Test
2026-06-27 20:26:41 +08:00
parent 82e5f9d4a0
commit aade9fa938
+1 -1
View File
@@ -21,7 +21,7 @@ COPY requirements.txt /tmp/requirements.txt
# 创建虚拟环境并安装依赖
RUN python -m venv /opt/venv \
&& /opt/venv/bin/pip install --no-cache-dir -r /tmp/requirements.txt \
&& /opt/venv/bin/pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com -r /tmp/requirements.txt \
&& rm /tmp/requirements.txt
# 复制应用代码