fix: mount .build-info as volume instead of relying on COPY
All checks were successful
CI / ruff (push) Successful in 16s
CI / pytest (push) Successful in 2h40m25s
CI / validate (push) Successful in 31s
CI / dependency-scanning (push) Successful in 37s
CI / docs (push) Successful in 50s
CI / deploy (push) Successful in 1m11s

Docker build cache can skip picking up the .build-info file during
COPY. Mounting it as a read-only volume ensures the container always
reads the current host file.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-23 13:53:42 +01:00
parent 5b4ed79f87
commit 3015a490f9

View File

@@ -52,6 +52,7 @@ services:
volumes:
- ./logs:/app/logs
- ./uploads:/app/uploads
- ./.build-info:/app/.build-info:ro
mem_limit: 512m
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]