Playwright固定官方镜像

This commit is contained in:
yml
2026-04-08 17:25:55 +08:00
parent ea6440c844
commit c09368d2c2
3 changed files with 3 additions and 12 deletions
+1 -2
View File
@@ -49,8 +49,8 @@ docker compose up -d
- Debian `apt` 使用腾讯云镜像
- `npm` 使用 `npmmirror`
- Playwright 浏览器默认先尝试 `npmmirror`,失败后自动回退官方源
- `uv` 通过 `pip` 安装,`uv` / `pip` 使用腾讯云 PyPI 镜像
- Playwright 浏览器固定使用官方源
如果你的服务器网络环境不同,也可以在构建时覆盖:
@@ -58,7 +58,6 @@ docker compose up -d
docker compose build \
--build-arg DEBIAN_MIRROR=mirrors.tuna.tsinghua.edu.cn \
--build-arg NPM_REGISTRY=https://registry.npmjs.org \
--build-arg PLAYWRIGHT_DOWNLOAD_HOST=https://playwright.azureedge.net \
--build-arg UV_DEFAULT_INDEX=https://pypi.org/simple
```