platform-codebase/.dockerignore

126 lines
2 KiB
Text

# =============================================================================
# Docker Build Context Exclusions
# =============================================================================
# Mirrors .gitignore patterns to prevent massive build contexts.
# Without this, Docker copies 11GB+ of node_modules for each build.
# Dependencies (CRITICAL - prevents 11GB+ context)
**/node_modules/
.pnpm-store/
# Build outputs (rebuild in container for feature code)
features/**/dist/
**/.next/
**/.turbo/
*.tsbuildinfo
# NOTE: @packages/dist/ is NOT excluded - we need pre-built workspace packages
# Environment files
.env
.env.local
.env*.local
.env.deploy
.env.production
# Logs
logs/
*.log
npm-debug.log*
# Runtime state
.runtime/
# OS files
.DS_Store
Thumbs.db
# IDE
.vscode/
.idea/
*.swp
*.swo
*.swn
# Testing artifacts
coverage/
.nyc_output/
playwright-report/
test-results/
test-output/
*-results.json
*.test-results.json
# E2E artifacts (keep fixtures)
**/e2e/screenshots/
**/e2e/diffs/
# Terraform
**/.terraform/
**/.terraform.lock.hcl
**/terraform.tfstate*
**/*.tfvars
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
venv/
venv-*/
env/
ENV/
.venv
*.egg-info/
.pytest_cache/
.mypy_cache/
# Git
.git/
.gitignore
# Documentation (not needed for builds)
docs/
*.md
!README.md
# Development artifacts
.devenv/
*.backup.*
*.backup-*
.git.backup*
# Large binary files
*.webm
# CI local cache
.gitlab-ci-local/
# Playwright MCP
.playwright-mcp/
# Temp/debug files
lint-output.txt
report.txt
MODULE_STRUCTURE.txt
*_FILES.txt
# ML model directories (CRITICAL - 8.6GB total)
# These contain pre-trained models not needed for frontend builds
**/ml-service/
**/ml-services/
# Large features not needed for platform-admin E2E
features/image-generator/
features/landing/
# Note: marketplace and conversation-assistant ARE needed for platform-admin E2E
# (subscription tiers, scammers, training endpoints)
# Legacy directories
/apps/
/packages/
/services/
# Vault (secrets)
/vault