docs: 补充镜像源配置说明,强调必须使用 docker compose build

This commit is contained in:
ShellMonster
2026-01-20 11:09:27 +08:00
parent 3d6dda8a17
commit b3a1253404

View File

@@ -265,12 +265,17 @@ GO_PROXY=https://goproxy.cn,direct
ALPINE_MIRROR=mirrors.aliyun.com
```
**步骤3重新构建**
**步骤3使用 docker compose 构建(必须)**
```bash
docker-compose build
docker compose build
```
> **重要说明**
> - ⚠️ 必须使用 `docker compose build` 才能自动加载 `.env` 文件中的镜像源配置
> - ❌ 如果使用 `docker build` 命令,需要手动传递 `--build-arg` 参数
> - ✅ 推荐始终使用 `docker compose build` 进行构建
**效果对比**
| 操作 | 不配置镜像源 | 配置镜像源后 |