From 719d8978b533e33729036a6979d9417267c0741d Mon Sep 17 00:00:00 2001 From: plf1996 Date: Thu, 18 Jun 2026 14:33:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20backend=20Dockerfile=20=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E9=98=BF=E9=87=8C=E4=BA=91=20PyPI=20=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E5=8A=A0=E9=80=9F=20pip=20=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit uv pip install 添加 --index-url mirrors.aliyun.com/pypi/simple/ 并以 --extra-index-url pypi.org 作为回退,确保自定义包也可安装 --- backend/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/Dockerfile b/backend/Dockerfile index ce93463..5df9a86 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -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" \