优化下载速度, 配置镜像站

This commit is contained in:
yml
2026-04-08 17:05:25 +08:00
parent 313c036845
commit 1c3e306e36
4 changed files with 56 additions and 1 deletions
+17
View File
@@ -45,6 +45,23 @@ docker compose build
docker compose up -d
```
当前 Dockerfile 已默认针对国内服务器优化以下下载源:
- 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.npmjs.org \
--build-arg PLAYWRIGHT_DOWNLOAD_HOST=https://playwright.azureedge.net \
--build-arg UV_DEFAULT_INDEX=https://pypi.org/simple
```
默认入口:
- 前端与领取页:`https://你的域名/`