# 构建上下文瘦身 + 防泄(Phase 4 Task 1): # - .env 必须排除(密钥不进镜像层);admin/.env.production 是构建输入, # 不受根级 .env 规则影响(.dockerignore 模式锚定在上下文根) # - tests/docs 不进生产镜像(镜像内不拷 tests,Dockerfile 与此保持一致) .git .gitignore .gitattributes .venv venv **/node_modules admin/dist .worktrees tests docs data tenants platform.db* .playwright-mcp .claude .pytest_cache **/__pycache__ *.md .env