Add .dockerignore and .gitignore files to exclude unnecessary files and directories

This commit is contained in:
Felix Schlusche
2025-10-23 00:36:12 +02:00
parent 9310cb2b8f
commit 9a07409843
2 changed files with 89 additions and 0 deletions

64
.dockerignore Normal file
View File

@@ -0,0 +1,64 @@
# Git
.git
.gitignore
.gitattributes
# Node.js
node_modules
npm-debug.log
yarn-error.log
package-lock.json
# Database (will be created at runtime or mounted as volume)
db/*.db
db/*.db-journal
db/*.db-wal
# Documentation
README.md
*.md
docs/
# IDE and Editor
.vscode
.idea
*.swp
*.swo
*~
.DS_Store
# Testing
test/
tests/
*.test.js
*.spec.js
coverage/
# CI/CD
.github/
.gitlab-ci.yml
.travis.yml
Jenkinsfile
# Docker
Dockerfile*
docker-compose*.yml
.dockerignore
# Environment files (security)
.env
.env.*
*.env
# Logs
logs/
*.log
# Temporary files
tmp/
temp/
*.tmp
# OS files
Thumbs.db
.DS_Store

25
.gitignore vendored Normal file
View File

@@ -0,0 +1,25 @@
# Dependencies
node_modules/
# Database
db/*.db
db/*.db-shm
db/*.db-wal
# Logs
*.log
npm-debug.log*
# Environment variables
.env
.env.local
# OS files
.DS_Store
Thumbs.db
# IDE
.vscode/
.idea/
*.swp
*.swo