fix: backend Dockerfile 使用阿里云 PyPI 镜像加速 pip 安装
GraphRAG CI/CD / build-and-deploy (push) Failing after 12m52s
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:
@@ -13,6 +13,8 @@ COPY backend/.env.example .
|
||||
# Create venv and install deps
|
||||
RUN uv venv /opt/venv && \
|
||||
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" \
|
||||
"uvicorn[standard]>=0.24.0" \
|
||||
"python-multipart>=0.0.6" \
|
||||
|
||||
Reference in New Issue
Block a user