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 GitHub
parent 33bbe2b18b
commit aa189fdaab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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/