From 3015a490f91090515361c489edecfe3dfca46fc5 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Mon, 23 Mar 2026 13:53:42 +0100 Subject: [PATCH] fix: mount .build-info as volume instead of relying on COPY 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) --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index 86eecdb4..08fdafa3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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"]