fix: backend Dockerfile 使用阿里云 PyPI 镜像加速 pip 安装
GraphRAG CI/CD / build-and-deploy (push) Failing after 12m52s

uv pip install 添加 --index-url mirrors.aliyun.com/pypi/simple/
并以 --extra-index-url pypi.org 作为回退,确保自定义包也可安装
This commit is contained in:
2026-06-18 14:33:24 +08:00
parent 58079daba9
commit 719d8978b5
+2
View File
@@ -13,6 +13,8 @@ COPY backend/.env.example .
# Create venv and install deps # Create venv and install deps
RUN uv venv /opt/venv && \ RUN uv venv /opt/venv && \
uv pip install --python /opt/venv/bin/python \ uv pip install --python /opt/venv/bin/python \
--index-url https://mirrors.aliyun.com/pypi/simple/ \
--extra-index-url https://pypi.org/simple/ \
"fastapi>=0.104.0" \ "fastapi>=0.104.0" \
"uvicorn[standard]>=0.24.0" \ "uvicorn[standard]>=0.24.0" \
"python-multipart>=0.0.6" \ "python-multipart>=0.0.6" \