feat: 添加 .dockerignore 减小 Docker 构建上下文

排除 node_modules、.next、data 等目录,解决 Build Cache 膨胀问题。
This commit is contained in:
gitadmin 2026-05-08 12:55:44 +08:00
parent f692546281
commit f578198cf9
1 changed files with 34 additions and 0 deletions

34
.dockerignore Normal file
View File

@ -0,0 +1,34 @@
# 依赖 —— Dockerfile 内用 npm ci 安装
node_modules
# 构建产物 —— Dockerfile 内用 npm run build 生成
.next
# 运行时数据 —— volume 挂载
data
uploads
reports
db-backups
# 开发工具
.claude
.playwright-mcp
.superpowers
.git
.gitignore
Dockerfile
docker-compose.yml
Caddyfile
.env
.env.*
.DS_Store
# 文档
*.md
*.png
docs
CHANGELOG.md
README.md
# 构建缓存
tsconfig.tsbuildinfo