Mount dist outputs to the host

This commit is contained in:
2026-03-20 15:11:01 +08:00
parent d3d1a8650e
commit 0cb08642aa
3 changed files with 3 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ web/ 页面与静态资源
- `docker-compose.yml``Dockerfile``tools/` 都位于项目主目录
- 默认主配置面向远程 MySQL
- `docker-compose.test.yml` 中的 MySQL 仅用于本地测试
- 容器内生成的 `dist/device_index.json``dist/mobilemodels_mysql_seed.sql` 会直接挂载到宿主机项目根目录的 `dist/`
- Compose 会优先读取 shell 环境变量和项目根目录 `.env`,再回退到 `docker-compose.yml` 默认值
- 上游原始 git 同步、索引构建和 MySQL 刷新都在容器内完成
- 项目内置“每日自动同步”调度,不依赖 GitHub Actions时间点可在数据管理页设置也可用 `.env` 覆盖默认值