优化下载速度, 配置镜像站
This commit is contained in:
@@ -74,6 +74,24 @@ docker compose build
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
如果服务器在国内,当前版本默认已启用国内镜像源加速:
|
||||
|
||||
- Debian `apt`:腾讯云镜像
|
||||
- `npm`:`npmmirror`
|
||||
- Playwright:`amd64` 默认走 `npmmirror`,其他架构自动回退官方源
|
||||
- `uv` / `pip`:腾讯云 PyPI 镜像
|
||||
|
||||
如果你要切换成别的源,可以手动执行:
|
||||
|
||||
```bash
|
||||
docker compose build \
|
||||
--build-arg DEBIAN_MIRROR=mirrors.tuna.tsinghua.edu.cn \
|
||||
--build-arg NPM_REGISTRY=https://registry.npmmirror.com \
|
||||
--build-arg PLAYWRIGHT_DOWNLOAD_HOST=https://npmmirror.com/mirrors/playwright \
|
||||
--build-arg UV_DEFAULT_INDEX=https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
查看运行状态:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user