fix: ajouter des vérifications de débogage pour le build

- Vérification que npm est disponible
- Vérification du répertoire de travail
- Séparation des commandes build:data et build pour identifier quelle étape échoue
- Cela devrait aider à identifier pourquoi exit code 127
This commit is contained in:
syoul
2025-12-03 15:59:05 +01:00
parent 821bce7476
commit 789ee885a2

View File

@@ -53,7 +53,10 @@ RUN mkdir -p .techradar/data && \
cp custom.css .techradar/src/styles/custom.css 2>/dev/null || echo "custom.css not found, skipping" cp custom.css .techradar/src/styles/custom.css 2>/dev/null || echo "custom.css not found, skipping"
# Builder l'application en mode production pour éviter Fast Refresh # Builder l'application en mode production pour éviter Fast Refresh
RUN cd .techradar && npm run build:data && npm run build # Vérifier que npm est disponible et que nous sommes dans le bon répertoire
RUN which npm && pwd && ls -la .techradar/package.json
RUN cd .techradar && pwd && which npm && npm --version && npm run build:data
RUN cd .techradar && npm run build
# Exposition du port interne # Exposition du port interne
EXPOSE 3000 EXPOSE 3000