G
GitIgnore.pro
Back to Templates

Docker .gitignore Template

Docker project template

5K downloads
4.5/5.0
Updated 2024-01
.gitignore
33 lines

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

How to Use This Template

  1. Copy the template content above
  2. Create a new file named .gitignore in your project root
  3. Paste the content into the file
  4. Customize the patterns for your specific project needs
  5. Commit the .gitignore file to your repository

Container tooling

Hide bloated Docker layers

Download a prebuilt docker.gitignore and keep images small.