diff --git a/Dockerfile.business b/Dockerfile.business index 8e0e2b5..21ccf24 100644 --- a/Dockerfile.business +++ b/Dockerfile.business @@ -18,6 +18,9 @@ COPY package.json package-lock.json* ./ # Installation des dépendances Node RUN npm install --legacy-peer-deps --ignore-scripts +# Patch du package aoe_technology_radar pour inclure gray-matter dans les dépendances runtime +RUN node -e "const fs=require('fs');const pkgPath='./node_modules/aoe_technology_radar/package.json';const pkg=JSON.parse(fs.readFileSync(pkgPath,'utf8'));pkg.dependencies=pkg.dependencies||{};pkg.dependencies['gray-matter']='^4.0.3';pkg.scripts=pkg.scripts||{};pkg.scripts.prepare='';fs.writeFileSync(pkgPath,JSON.stringify(pkg,null,2));" + # Copie du reste du projet COPY . . RUN chmod +x scripts/start-business.sh