From 387b3f4806169b95ef1b79da176b73082d67800c Mon Sep 17 00:00:00 2001 From: syoul Date: Sun, 7 Dec 2025 08:13:36 +0100 Subject: [PATCH] fix: correction structure RUN avec if dans Dockerfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Le grep doit être dans le même RUN que le if - Correction de la structure pour que tout soit dans un seul RUN --- Dockerfile.business | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile.business b/Dockerfile.business index 637a137..330b03f 100644 --- a/Dockerfile.business +++ b/Dockerfile.business @@ -153,10 +153,7 @@ else: print("❌ Impossible de modifier Navigation.tsx") exit(1) PYTHON_EOF - grep -q 'href="/team"' .techradar/src/components/Navigation/Navigation.tsx && echo "✅ Lien Équipe ajouté" || (echo "❌ Lien Équipe non trouvé après modification" && cat .techradar/src/components/Navigation/Navigation.tsx && exit 1); \ - else \ - echo "ℹ️ Lien Équipe déjà présent dans Navigation.tsx"; \ - fi +RUN grep -q 'href="/team"' .techradar/src/components/Navigation/Navigation.tsx && echo "✅ Lien Équipe ajouté" || (echo "❌ Lien Équipe non trouvé après modification" && cat .techradar/src/components/Navigation/Navigation.tsx && exit 1) # Builder l'application en mode production pour éviter Fast Refresh # Utiliser WORKDIR pour changer de répertoire de manière fiable