From e41cd42807cdd2495681b2d30c3edd2a8b66b765 Mon Sep 17 00:00:00 2001 From: syoul Date: Tue, 2 Dec 2025 20:10:08 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20Dockerfile=20utilise=20npm=20install=20-?= =?UTF-8?q?-ignore-scripts=20pour=20=C3=A9viter=20l'erreur=20husky=20et=20?= =?UTF-8?q?installe=20gray-matter=20explicitement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile.business | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Dockerfile.business b/Dockerfile.business index ede11cb..94ae0e7 100644 --- a/Dockerfile.business +++ b/Dockerfile.business @@ -10,14 +10,11 @@ RUN apk add --no-cache git COPY package.json package-lock.json* ./ # Installation des dépendances Node -RUN npm ci --legacy-peer-deps || npm install --legacy-peer-deps +# Utilisation de --ignore-scripts pour éviter l'erreur husky +RUN npm install --legacy-peer-deps --ignore-scripts -# --- FIX RADICAL --- -# Force l'installation de gray-matter et glob localement ET globalement -# pour s'assurer que tsx les trouve peu importe le contexte d'exécution -RUN npm install -g gray-matter glob +# Installation forcée de gray-matter et glob RUN npm install gray-matter glob -# ------------------- # Copie du reste du projet COPY . . @@ -28,7 +25,7 @@ RUN cp radar-business/config-business.json config.json && \ rm -rf radar/* && \ cp -r radar-business/2025-01-15/* radar/ -# Exposition du port interne (par défaut 3000 pour techradar serve) +# Exposition du port interne EXPOSE 3000 # Démarrage du serveur