国内 PyPI 安装 uv 更稳

This commit is contained in:
yml
2026-04-08 17:13:52 +08:00
parent 92970780a4
commit 79c0fcb221
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ docker compose up -d
- Debian `apt` 使用腾讯云镜像
- `npm` 使用 `npmmirror`
- Playwright 浏览器默认先尝试 `npmmirror`,失败后自动回退官方源
- `uv` / `pip` 使用腾讯云 PyPI 镜像
- `uv` 通过 `pip` 安装,`uv` / `pip` 使用腾讯云 PyPI 镜像
如果你的服务器网络环境不同,也可以在构建时覆盖:
+2 -2
View File
@@ -21,8 +21,8 @@ RUN apt-get update \
&& apt-get install -y --no-install-recommends curl ca-certificates python3 python3-pip \
&& rm -rf /var/lib/apt/lists/*
RUN curl -LsSf https://astral.sh/uv/install.sh | sh \
&& ln -sf /root/.local/bin/uv /usr/local/bin/uv
RUN python3 -m pip install --no-cache-dir uv \
&& ln -sf /usr/local/bin/uv /usr/bin/uv
COPY apps/backend/package.json apps/backend/package-lock.json ./
RUN npm ci
+1 -1
View File
@@ -79,7 +79,7 @@ docker compose up -d
- Debian `apt`:腾讯云镜像
- `npm``npmmirror`
- Playwright:默认先走 `npmmirror`,失败后自动回退官方源
- `uv` / `pip`腾讯云 PyPI 镜像
- `uv` 通过 `pip` 安装,`uv` / `pip` 使用腾讯云 PyPI 镜像
如果你要切换成别的源,可以手动执行: