fix: correction structure RUN avec if dans Dockerfile

- Le grep doit être dans le même RUN que le if
- Correction de la structure pour que tout soit dans un seul RUN
This commit is contained in:
syoul
2025-12-07 08:13:36 +01:00
parent e1842c5df5
commit 387b3f4806

View File

@@ -153,10 +153,7 @@ else:
print("❌ Impossible de modifier Navigation.tsx") print("❌ Impossible de modifier Navigation.tsx")
exit(1) exit(1)
PYTHON_EOF 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); \ 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)
else \
echo " Lien Équipe déjà présent dans Navigation.tsx"; \
fi
# Builder l'application en mode production pour éviter Fast Refresh # Builder l'application en mode production pour éviter Fast Refresh
# Utiliser WORKDIR pour changer de répertoire de manière fiable # Utiliser WORKDIR pour changer de répertoire de manière fiable