From 821bce7476c288dec5427a21c9a168ebe2238a81 Mon Sep 17 00:00:00 2001 From: syoul Date: Wed, 3 Dec 2025 15:57:52 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20copier=20les=20fichiers=20n=C3=A9cessair?= =?UTF-8?q?es=20dans=20.techradar=20avant=20le=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Copie de radar, public, config.json, about.md, custom.css dans .techradar - Exécution de build:data avant build pour générer les données - Cela reproduit ce que fait techradar.js automatiquement - Le build devrait maintenant fonctionner correctement --- Dockerfile.business | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile.business b/Dockerfile.business index 7a6b1bc..21c35ad 100644 --- a/Dockerfile.business +++ b/Dockerfile.business @@ -44,9 +44,16 @@ RUN cp radar-business/config-business.json config.json && \ mkdir -p radar/2025-01-15 && \ cp -r radar-business/2025-01-15/* radar/2025-01-15/ +# Copier les fichiers nécessaires dans .techradar avant le build (comme le fait techradar.js) +RUN mkdir -p .techradar/data && \ + cp -r radar .techradar/data/radar && \ + cp -r public .techradar/public && \ + cp config.json .techradar/data/config.json && \ + cp about.md .techradar/data/about.md 2>/dev/null || echo "about.md 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 -# 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) +RUN cd .techradar && npm run build:data && npm run build # Exposition du port interne EXPOSE 3000