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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user