fix: utiliser le binaire techradar directement depuis node_modules
- 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
This commit is contained in:
@@ -26,8 +26,9 @@ COPY . .
|
|||||||
RUN chmod +x scripts/start-business.sh
|
RUN chmod +x scripts/start-business.sh
|
||||||
|
|
||||||
# Préparer .techradar une fois pour toutes (évite les réinstallations au runtime)
|
# Préparer .techradar une fois pour toutes (évite les réinstallations au runtime)
|
||||||
RUN npx techradar install
|
# Utiliser le binaire techradar directement depuis node_modules
|
||||||
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));"
|
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 install --legacy-peer-deps
|
||||||
RUN cd .techradar && npm run build:icons
|
RUN cd .techradar && npm run build:icons
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user