From ecfd69504cfc624952ea6a9249bf6f82dc3a0cf3 Mon Sep 17 00:00:00 2001 From: syoul Date: Wed, 3 Dec 2025 15:51:22 +0100 Subject: [PATCH] fix: utiliser le binaire techradar directement depuis node_modules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remplacement de 'npx techradar install' par './node_modules/.bin/techradar install' - Cela évite les problèmes avec npx qui peut ne pas trouver le binaire - Le binaire est disponible après l'installation de aoe_technology_radar --- Dockerfile.business | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile.business b/Dockerfile.business index a84c11e..31091b2 100644 --- a/Dockerfile.business +++ b/Dockerfile.business @@ -26,8 +26,9 @@ COPY . . RUN chmod +x scripts/start-business.sh # Préparer .techradar une fois pour toutes (évite les réinstallations au runtime) -RUN npx techradar install -RUN node -e "const fs=require('fs');const p='.techradar/package.json';const pkg=JSON.parse(fs.readFileSync(p,'utf8'));pkg.scripts=pkg.scripts||{};pkg.scripts.prepare='';fs.writeFileSync(p,JSON.stringify(pkg,null,2));" +# Utiliser le binaire techradar directement depuis node_modules +RUN ./node_modules/.bin/techradar install || node_modules/.bin/techradar install +RUN node -e "const fs=require('fs');const p='.techradar/package.json';if(!fs.existsSync(p)){console.error('.techradar/package.json not found');process.exit(1);}const pkg=JSON.parse(fs.readFileSync(p,'utf8'));pkg.scripts=pkg.scripts||{};pkg.scripts.prepare='';fs.writeFileSync(p,JSON.stringify(pkg,null,2));" RUN cd .techradar && npm install --legacy-peer-deps RUN cd .techradar && npm run build:icons