diff --git a/Dockerfile.business b/Dockerfile.business index 175720d..da21351 100644 --- a/Dockerfile.business +++ b/Dockerfile.business @@ -53,10 +53,11 @@ RUN mkdir -p .techradar/data && \ 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 nous sommes dans le bon répertoire -RUN which npm && pwd && ls -la .techradar/package.json -RUN cd .techradar && pwd && which npm && npm --version && npm run build:data -RUN cd .techradar && npm run build +# Utiliser WORKDIR pour changer de répertoire de manière fiable +WORKDIR /app/.techradar +RUN npm run build:data +RUN npm run build +WORKDIR /app # Exposition du port interne EXPOSE 3000