Docker context hygiene
Exclude build context files, secrets and local config overrides.
Explore resourceProfessional .gitignore tools
Docker project template
Using GitIgnore.pro fallback template because the official template was unavailable during generation.
# Docker .gitignore template
# Generated by GitIgnore.pro
# Logs
*.log
logs/
# Dependencies
node_modules/
vendor/
# Build outputs
build/
dist/
out/
# Cache
.cache/
*.tmp
# Environment variables
.env
.env.local
# IDE
.vscode/
.idea/
*.swp
*.swo
# OS
.DS_Store
Thumbs.db.gitignore in your project rootExclude build context files, secrets and local config overrides.
Explore resourceManage overrides, volumes and env files responsibly.
Explore resourceCombine Docker builds with GitHub Actions without leaking artifacts.
Explore resourceDownload a prebuilt docker.gitignore and keep images small.