From 57db3e0a322e228404d3ee70d5574e90ca74385b Mon Sep 17 00:00:00 2001 From: Gabriel Radureau Date: Tue, 7 Apr 2026 12:39:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs:=20clarify=20Dockerfile.pro?= =?UTF-8?q?d=20usage=20and=20add=20warnings=20about=20latest=20tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile.prod | 6 ++++-- scripts/test-local-ci-cd.sh | 6 +++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Dockerfile.prod b/Dockerfile.prod index c08c5b5..6e0dcdb 100644 --- a/Dockerfile.prod +++ b/Dockerfile.prod @@ -1,7 +1,9 @@ # DanceLessonsCoach Production Docker Image -# Minimal image using pre-built binary from CI cache +# ⚠️ DEVELOPMENT ONLY - This file uses 'latest' tag for local testing +# ⚠️ CI/CD generates the correct Dockerfile.prod with proper dependency hash +# ⚠️ For production use, see the CI/CD workflow which generates the correct file -# Use the build cache image as base +# Use the build cache image as base (latest for local dev only) FROM gitea.arcodange.lab/arcodange/dance-lessons-coach-build-cache:latest AS builder # Final minimal image diff --git a/scripts/test-local-ci-cd.sh b/scripts/test-local-ci-cd.sh index 8b34568..aee631a 100755 --- a/scripts/test-local-ci-cd.sh +++ b/scripts/test-local-ci-cd.sh @@ -96,7 +96,9 @@ if [ "$HAS_DOCKER" = true ]; then echo "" echo "2. Build production image using Dockerfile.prod:" + echo " # Note: Local Dockerfile.prod uses 'latest' tag for testing" echo " docker build -t dance-lessons-coach-prod:$CURRENT_VERSION -f Dockerfile.prod ." + echo " # For CI/CD, the workflow generates correct Dockerfile.prod with dependency hash" echo "" echo "3. Compare image sizes:" @@ -272,4 +274,6 @@ echo "🎯 When ready for production:" echo " Push to main branch to trigger full CI/CD pipeline" echo " Docker image will be built and pushed to Gitea Container Registry" echo "" -echo "💡 Local testing complete! Your changes are ready for CI/CD." \ No newline at end of file +echo "💡 Local testing complete! Your changes are ready for CI/CD." +# ⚠️ IMPORTANT: Local Dockerfile.prod uses 'latest' tag for testing only +# ✅ CI/CD workflow generates correct Dockerfile.prod with dependency hash