perf: Docker 构建使用清华镜像源并启用 BuildKit pip 缓存挂载,大幅加速重复构建

This commit is contained in:
yueli
2026-09-02 18:39:09 +08:00
parent 0887b20302
commit 85130db6ea
2 changed files with 26 additions and 3 deletions

View File

@ -10,3 +10,23 @@ uploads
pgdata
.env
simhei.ttf
# ---- 补充排除项 ----
# Windows 残留空文件
nul
# 数据库备份文件(避免打进镜像/context)
*.dump
*.sql.gz
*.tar.gz
*.gz
*.log
# 数据库迁移脚本(运行时用 volume 挂载宿主机,镜像内不需要)
db_migrations
# 测试脚本与缓存
test_*.py
tests
.pytest_cache
.coverage
# 运维修复脚本(宿主机保留,无需进镜像)
fix_*.py
fix_*.sql