meldestelle/.dockerignore
StefanMoCoAt 994a3397c2 chore(infra): simplify Docker builds and remove unused WEB_BUILD_PROFILE
- Adjusted Dockerfile’s build process for production-only artifacts.
- Removed unused `WEB_BUILD_PROFILE` from `dc-gui.yaml`.
- Optimized Gradle settings for better caching and performance.
- Updated `.dockerignore` to include source packages previously excluded by mistake.
2026-02-01 21:17:22 +01:00

222 lines
5.9 KiB
Plaintext

# ===================================================================
# Docker Ignore File for Meldestelle Project
# Optimizes build performance by excluding unnecessary files
# ===================================================================
# ===================================================================
# Version Control and Git
# ===================================================================
.git
.gitignore
.gitattributes
.gitmodules
**/.git
**/.gitignore
# ===================================================================
# Documentation and README files
# ===================================================================
*.md
**/README*
**/CHANGELOG*
**/LICENSE*
**/CONTRIBUTING*
docs/
**/*.md
# ===================================================================
# IDE and Editor files
# ===================================================================
.idea/
.vscode/
.settings/
.project
.classpath
*.swp
*.swo
*~
.DS_Store
Thumbs.db
*.sublime-*
*.iml
*.iws
*.ipr
# ===================================================================
# Build artifacts and cache directories
# ===================================================================
**/build/
**/target/
**/out/
**/.gradle/
**/node_modules/
**/dist/
**/tmp/
**/.cache/
**/.tmp/
**/kotlin-js-store/
# ===================================================================
# Test and Coverage reports
# ===================================================================
**/test-results/
**/coverage/
**/reports/
**/*.log
**/logs/
**/.coverage
**/.nyc_output
# ===================================================================
# Environment and Configuration files
# ===================================================================
# .env
# .env.example
# ===================================================================
# Docker and Container files
# ===================================================================
Dockerfile*
docker-compose*
.dockerignore
**/.dockerignore
# ===================================================================
# Development data and temporary files
# ===================================================================
dev-data/
temp-data/
*.tmp
*.temp
**/temp/
**/.temp/
# Exception: Allow temp/ping-service for Docker builds
!services/ping/ping-service/
# ===================================================================
# Gradle wrapper executable (keep gradle wrapper jar)
# ===================================================================
!gradle/wrapper/gradle-wrapper.jar
# ===================================================================
# Kotlin Multiplatform specific
# ===================================================================
**/build/js/
**/build/compileSync/
**/build/klib/
# ===================================================================
# Client build artifacts
# ===================================================================
**/build/distributions/
**/build/webpack-config-cache/
**/build/webpack/
# ===================================================================
# Monitoring and Logging (exclude from builds)
# ===================================================================
**/prometheus-data/
**/grafana-data/
**/*.log.*
**/log/
# ===================================================================
# Backup and Archive files
# ===================================================================
*.bak
*.backup
*.old
*.orig
*.zip
*.tar.gz
*.tar.bz2
*.tgz
# ===================================================================
# OS specific files
# ===================================================================
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
# ===================================================================
# JetBrains IDE
# ===================================================================
out/
.idea_modules/
# ===================================================================
# Package managers lock files (keep for reproducible builds)
# ===================================================================
# Keep these files for consistent dependency versions
!package-lock.json
!yarn.lock
!gradle.lockfile
# ===================================================================
# Build and deployment scripts (exclude from builds)
# ===================================================================
scripts/deploy/
scripts/backup/
scripts/monitoring/
Makefile
deploy.sh
backup.sh
# ===================================================================
# Security and certificates (never include in builds)
# ===================================================================
config/backend/infrastructure/ssl/
**/*.key
**/*.pem
**/*.p12
**/*.jks
**/*.crt
secrets/
**/*secret*
**/*password*
**/*credential*
# ===================================================================
# Database and data files
# ===================================================================
**/*.db
**/*.sqlite
**/*.sqlite3
**/postgres-data/
**/redis-data/
# REMOVED: **/data/ - This was excluding source packages named 'data' (e.g. at.mocode...data)
# ===================================================================
# Application specific exclusions
# ===================================================================
TODO*.md
NOTES*.md
**/.junie/
# ===================================================================
# Keep essential files (override exclusions)
# ===================================================================
# Gradle wrapper
!gradle/wrapper/gradle-wrapper.properties
# Essential configuration files for builds
!src/main/resources/application*.yml
!src/main/resources/application*.yaml
!src/main/resources/application*.properties
# Essential client configuration
!client/**/src/
!platform/
!core/
# Essential documentation for build
!docs/
# ===================================================================
# Final note: Each Dockerfile should copy only what it needs
# This .dockerignore provides a baseline for all builds
# ===================================================================