1
0

chore: add .dockerignore for production image builds

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
aminovfariz
2026-05-28 09:31:36 +02:00
parent 1b615a5e1c
commit 293807b92a

48
.dockerignore Normal file
View File

@@ -0,0 +1,48 @@
# ─── Version control ────────────────────────────────────────────────────────
.git/
.gitea/
# ─── Development / IDE ──────────────────────────────────────────────────────
# .agents/contracts/ содержит JSON-схемы нужные приложению — НЕ исключать!
# Исключаем только ephemeral артефакты запусков агентов.
.agents/runs/
.agents/prompts/
.agents/skills/
.agents/templates/
.agents/checks/
.agents/README.md
.agents/workflow.md
.claude/
.vscode/
.idea/
.DS_Store
# ─── Secrets (injected at runtime via --env-file) ───────────────────────────
.env
# ─── Composer vendor (installed fresh inside the image) ─────────────────────
vendor/
# ─── Runtime data (mounted as Docker volumes in production) ─────────────────
# Keep directory skeletons via mkdir in Dockerfile; don't bake user data in.
storage/
var/
# ─── Test suite (not needed in production image) ────────────────────────────
tests/
phpunit.xml
.phpunit.result.cache
phpstan.neon
phpstan-baseline.neon
.php-cs-fixer.cache
# ─── Generated web assets (symlinks / built at runtime by module-assets-sync)
# web/modules/ contains absolute Linux symlinks → invalid on Windows Docker builds.
# The app recreates these at startup; do NOT bake them into the image.
web/modules/
web/debugger/
# ─── Docs & local compose files (not needed inside container) ───────────────
docs/
docker-compose.yml
docker-compose.prod.yml