.dockerignore 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # SEC_REVIEW F19: explicit allow/deny for the api build context.
  2. # `Dockerfile` does `COPY . ./` for the runtime stage, so anything
  3. # not listed here is baked into the image.
  4. # Secrets — block any future `.env` / `.env.local` dropped in this
  5. # directory from silently shipping in the image. Compose loads `.env`
  6. # from the repo root, not from `api/`, so nothing here is needed.
  7. .env
  8. .env.*
  9. # Version control
  10. .git
  11. .gitignore
  12. .gitattributes
  13. # Editor / IDE noise
  14. .idea/
  15. .vscode/
  16. *.swp
  17. *~
  18. .DS_Store
  19. # Tests and dev tooling — not needed at runtime, and `tests/` may hold
  20. # fixtures that double as LFI targets.
  21. tests/
  22. .phpunit.cache/
  23. .phpunit.result.cache
  24. .phpstan.cache/
  25. .php-cs-fixer.cache
  26. .php-cs-fixer.dist.php
  27. phpstan.neon
  28. phpunit.xml
  29. # Host vendor/ — the deps stage installs a clean vendor and copies it
  30. # in via `COPY --from=deps`; leaving the host vendor in the context
  31. # would let the subsequent `COPY . ./` clobber the deps-stage tree.
  32. vendor/
  33. # Project metadata and docs — not consumed by the runtime.
  34. CHANGELOG.md
  35. # Build artifacts that don't belong in the runtime image.
  36. .dockerignore
  37. Dockerfile
  38. # Claude Code session state
  39. .claude/