fix: ajouter des vérifications pour le build dans .techradar
- Ajout de vérifications pour voir si npm est disponible - Affichage du package.json en cas d'échec pour déboguer - Cela devrait aider à identifier pourquoi npm run build échoue
This commit is contained in:
@@ -45,7 +45,8 @@ RUN cp radar-business/config-business.json config.json && \
|
|||||||
cp -r radar-business/2025-01-15/* radar/2025-01-15/
|
cp -r radar-business/2025-01-15/* radar/2025-01-15/
|
||||||
|
|
||||||
# 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
|
# Vérifier que npm est disponible et que le script build existe
|
||||||
|
RUN cd .techradar && npm --version && npm run build || (echo "Build failed, checking package.json..." && cat package.json | grep -A 5 scripts && exit 1)
|
||||||
|
|
||||||
# Exposition du port interne
|
# Exposition du port interne
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|||||||
Reference in New Issue
Block a user