Playwright固定官方镜像
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user