Problem
Docker build sends entire project directory as context, including unnecessary files (node_modules, .git, .next, test artifacts).
Solution
Create .dockerignore to exclude:
- node_modules
- .next
- .git
- .github
- *.md
- .env*
- playwright-report
- test-results
- coverage
Expected Impact
30-50% faster context upload to Docker daemon