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