From dc8cd06989c4cfbcc2bd6d725eec2e35ceeeafba Mon Sep 17 00:00:00 2001 From: syoul Date: Sun, 7 Dec 2025 08:00:31 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20am=C3=A9lioration=20gestion=20erreurs=20?= =?UTF-8?q?Dockerfile=20avec=20if/then?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Utilisation de if/then au lieu de && pour mieux gérer les erreurs - Affichage du contenu de Navigation.tsx en cas d'échec - Affichage du contenu du dossier pages/ si team.tsx n'existe pas - Messages d'erreur plus clairs --- Dockerfile.business | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/Dockerfile.business b/Dockerfile.business index 5bea7f8..af0dfab 100644 --- a/Dockerfile.business +++ b/Dockerfile.business @@ -78,16 +78,32 @@ RUN mkdir -p .techradar/data && \ RUN chmod +x scripts/create-team-page.sh && \ echo "🚀 Exécution de create-team-page.sh..." && \ echo "📋 État de Navigation.tsx AVANT modification:" && \ - grep -A 3 'href="/overview"' .techradar/src/components/Navigation/Navigation.tsx || echo "Pattern overview non trouvé" && \ - ./scripts/create-team-page.sh && \ + (grep -A 3 'href="/overview"' .techradar/src/components/Navigation/Navigation.tsx || echo "Pattern overview non trouvé") && \ + echo "" && \ + (./scripts/create-team-page.sh || (echo "❌ Script create-team-page.sh a échoué" && exit 1)) && \ echo "✅ Script create-team-page.sh terminé" && \ - echo "📋 État de Navigation.tsx APRÈS modification:" && \ - cat .techradar/src/components/Navigation/Navigation.tsx && \ echo "" && \ echo "📋 Vérification de Navigation.tsx:" && \ - grep -q 'href="/team"' .techradar/src/components/Navigation/Navigation.tsx && echo "✅ Lien Équipe trouvé dans Navigation.tsx" || (echo "❌ Lien Équipe NON trouvé dans Navigation.tsx" && exit 1) && \ + if grep -q 'href="/team"' .techradar/src/components/Navigation/Navigation.tsx; then \ + echo "✅ Lien Équipe trouvé dans Navigation.tsx"; \ + echo "📄 Extrait de Navigation.tsx avec le lien:"; \ + grep -A 3 'href="/team"' .techradar/src/components/Navigation/Navigation.tsx; \ + else \ + echo "❌ Lien Équipe NON trouvé dans Navigation.tsx"; \ + echo "📄 Contenu complet de Navigation.tsx:"; \ + cat .techradar/src/components/Navigation/Navigation.tsx; \ + exit 1; \ + fi && \ + echo "" && \ echo "📋 Vérification de team.tsx:" && \ - test -f .techradar/src/pages/team.tsx && echo "✅ team.tsx existe" || (echo "❌ team.tsx n'existe pas" && exit 1) + if [ -f .techradar/src/pages/team.tsx ]; then \ + echo "✅ team.tsx existe"; \ + else \ + echo "❌ team.tsx n'existe pas"; \ + echo "📁 Contenu de .techradar/src/pages/:"; \ + ls -la .techradar/src/pages/ 2>/dev/null || echo "Dossier pages/ non trouvé"; \ + exit 1; \ + fi # Builder l'application en mode production pour éviter Fast Refresh # Utiliser WORKDIR pour changer de répertoire de manière fiable