ADD: .dockerignore to fix Docker build space issues
- Add comprehensive .dockerignore to exclude unnecessary files from Docker context - Exclude .git directory to prevent large Git objects from being copied - Exclude node_modules, logs, temp files, and other build artifacts - Reduce Docker image size and build time significantly Fixes: - ENOSPC error during Docker build due to large .git directory - Excessive Docker image size from unnecessary files - Build context transfer time and resource usage 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
107
.dockerignore
Normal file
107
.dockerignore
Normal file
@@ -0,0 +1,107 @@
|
||||
# Git and version control
|
||||
.git
|
||||
.gitignore
|
||||
|
||||
# Node.js
|
||||
node_modules
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
# Environment and configuration
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
|
||||
# IDE and editor files
|
||||
.vscode
|
||||
.idea
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
|
||||
# OS generated files
|
||||
.DS_Store
|
||||
.DS_Store?
|
||||
._*
|
||||
.Spotlight-V100
|
||||
.Trashes
|
||||
ehthumbs.db
|
||||
Thumbs.db
|
||||
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
|
||||
# Build directories (we build inside Docker)
|
||||
dist/
|
||||
build/
|
||||
|
||||
# Temporary files
|
||||
tmp/
|
||||
temp/
|
||||
|
||||
# SSL certificates (generated at runtime)
|
||||
ssl/
|
||||
*.crt
|
||||
*.key
|
||||
*.pem
|
||||
|
||||
# Database files (use volumes)
|
||||
*.sqlite
|
||||
*.db
|
||||
|
||||
# Docker files (avoid recursion)
|
||||
Dockerfile*
|
||||
docker-compose*.yml
|
||||
.dockerignore
|
||||
|
||||
# Documentation
|
||||
README*.md
|
||||
CONTRIBUTING.md
|
||||
LICENSE
|
||||
*.md
|
||||
|
||||
# Repository images and assets (not needed in container)
|
||||
repo-images/
|
||||
|
||||
# Testing
|
||||
test/
|
||||
tests/
|
||||
*.test.js
|
||||
*.spec.js
|
||||
|
||||
# Uploads directory (use volumes)
|
||||
uploads/
|
||||
|
||||
# Backup files
|
||||
*.bak
|
||||
*.backup
|
||||
*.old
|
||||
|
||||
# Cache directories
|
||||
.cache/
|
||||
.npm/
|
||||
.yarn/
|
||||
|
||||
# TypeScript build info
|
||||
*.tsbuildinfo
|
||||
|
||||
# ESLint cache
|
||||
.eslintcache
|
||||
|
||||
# Prettier
|
||||
.prettierignore
|
||||
.prettierrc*
|
||||
|
||||
# Local configuration
|
||||
.claude/
|
||||
Reference in New Issue
Block a user