.git .idea __pycache__ *.pyc *.pyo venv .venv env 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