chore: repo hygiene — .dockerignore, .editorconfig, deploy-Doku
- .dockerignore: schließt node_modules, .next, data/, lokale ENV, Deploy- Skripte und Repo-Metadaten aus dem Build-Kontext aus. Vorher hat 'COPY . .' im Dockerfile alles ins Image kopiert, was unter src/ lag — jetzt wird nur das Nötige gebaut. - .editorconfig: einheitliche Einrückung (LF, 2 Spaces, UTF-8) und final-newline für TS/JS/JSON/YAML/SQL. Verhindert Editor-Drift zwischen pi/laptop/WSL-PC. - README: Live-Status-Block ergänzt (URL, Container-Image 323 MB, Traefik, Repo) und Erst-Deploy-Runbook (DNS, .env.local-Setup, Traefik-Restart wegen ACME 1h-Rate-Limit bei fehlendem A-Record). Hintergrund: vorher hat docker build lokal die data/eldov.db mitkopiert (in node_modules fällt das nicht auf, aber data/ lag im src/-Parent) und die Deploy-Skripte selbst (deploy.sh, deploy-vps.sh) — mit.dockerignore wandert das nicht mehr ins Image. .editorconfig war noch nie da, aber die anderen Repos im Cluster (w-make-com, hermes-tools) haben eins — Konsistenz.
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
# .dockerignore — schließt alles aus, was nicht ins Image gehört.
|
||||
# Wichtig: docker build nutzt NICHT .gitignore, sondern diese Datei.
|
||||
|
||||
# Git / Repo-Metadaten
|
||||
.git
|
||||
.gitignore
|
||||
.gitattributes
|
||||
|
||||
# Lokale Doku / Notizen
|
||||
AGENTS.md
|
||||
README.md
|
||||
CLAUDE.md
|
||||
PRESENCE-STRATEGY.md
|
||||
|
||||
# Deploy- und Dev-Skripte (gehören auf den Host, nicht ins Image)
|
||||
deploy.sh
|
||||
deploy-vps.sh
|
||||
docker-compose.yml
|
||||
|
||||
# Lokale ENV
|
||||
.env
|
||||
.env.local
|
||||
.env.local.example
|
||||
.env.*.local
|
||||
|
||||
# Lokale Laufzeit- und Build-Artefakte
|
||||
node_modules
|
||||
.next
|
||||
out
|
||||
dist
|
||||
data
|
||||
*.log
|
||||
.DS_Store
|
||||
.vscode
|
||||
.idea
|
||||
tsconfig.tsbuildinfo
|
||||
*.tsbuildinfo
|
||||
|
||||
# Tests (Coverage etc.)
|
||||
coverage
|
||||
.nyc_output
|
||||
Reference in New Issue
Block a user