From db00e2d814604af4f8bdc963de4a002920e842db Mon Sep 17 00:00:00 2001 From: syoul Date: Sun, 7 Dec 2025 08:18:57 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20s=C3=A9parer=20script=20Python=20et=20ex?= =?UTF-8?q?=C3=A9cution=20dans=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Création du script /tmp/add_team_link.py - Exécution du script dans un RUN séparé - Évite les erreurs de parsing Dockerfile --- Dockerfile.business | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile.business b/Dockerfile.business index e753490..e92ab18 100644 --- a/Dockerfile.business +++ b/Dockerfile.business @@ -107,10 +107,8 @@ export default TeamPage; EOF RUN echo "✅ Page team.tsx créée" -# Modifier Navigation.tsx pour ajouter le lien Équipe -RUN if ! grep -q 'href="/team"' .techradar/src/components/Navigation/Navigation.tsx; then \ - echo "➕ Ajout du lien Équipe dans Navigation.tsx..." && \ - cat > /tmp/add_team_link.py << 'PYEOF' +# Script Python pour ajouter le lien Équipe dans Navigation.tsx +RUN cat > /tmp/add_team_link.py << 'PYEOF' import sys f = ".techradar/src/components/Navigation/Navigation.tsx" with open(f, 'r') as file: @@ -141,6 +139,10 @@ else: print("❌ Impossible de trouver l'emplacement") sys.exit(1) PYEOF + +# Modifier Navigation.tsx pour ajouter le lien Équipe +RUN if ! grep -q 'href="/team"' .techradar/src/components/Navigation/Navigation.tsx; then \ + echo "➕ Ajout du lien Équipe dans Navigation.tsx..." && \ python3 /tmp/add_team_link.py && \ grep -q 'href="/team"' .techradar/src/components/Navigation/Navigation.tsx && echo "✅ Lien Équipe ajouté" || (echo "❌ Lien Équipe non trouvé" && cat .techradar/src/components/Navigation/Navigation.tsx && exit 1); \ else \