Update containerization-docker-best-practices.instructions.md (#137)

Reduce redundancy; improve coverage of excluding .env.* files.
This commit is contained in:
Robert Altman 2025-07-30 19:45:06 -05:00 committed by Aung Myo Kyaw
parent 84be478342
commit fd7d9f8ee9
No known key found for this signature in database
GPG Key ID: CF9C1464F7063FDD

View File

@ -174,8 +174,7 @@ RUN apt-get update && \
- **Example (Comprehensive .dockerignore):** - **Example (Comprehensive .dockerignore):**
```dockerignore ```dockerignore
# Version control # Version control
.git .git*
.gitignore
# Dependencies (if installed in container) # Dependencies (if installed in container)
node_modules node_modules
@ -189,8 +188,7 @@ build
*.so *.so
# Development files # Development files
.env .env.*
.env.local
*.log *.log
coverage coverage
.nyc_output .nyc_output
@ -206,9 +204,8 @@ coverage
Thumbs.db Thumbs.db
# Documentation # Documentation
README.md
docs/
*.md *.md
docs/
# Test files # Test files
test/ test/