debug: Add verbose logging to npm install for ARM64 builds

Added echo statements and --loglevel=verbose to see exactly what npm is
doing during the long ARM64 build process. This will help diagnose why
it's taking so long under QEMU emulation.
This commit is contained in:
Muhammad Ibrahim
2025-10-28 18:01:02 +00:00
parent 285e4c59ee
commit 746451c296

View File

@@ -24,9 +24,13 @@ WORKDIR /app/frontend
COPY frontend/package*.json ./
RUN npm cache clean --force &&\
RUN echo "=== Starting npm install ===" &&\
npm cache clean --force &&\
rm -rf node_modules ~/.npm /root/.npm &&\
npm install --legacy-peer-deps --no-audit --prefer-online --fetch-retries=3 --fetch-retry-mintimeout=20000 --fetch-retry-maxtimeout=120000
echo "=== npm install with verbose logging ===" &&\
npm install --legacy-peer-deps --no-audit --prefer-online --fetch-retries=3 --fetch-retry-mintimeout=20000 --fetch-retry-maxtimeout=120000 --loglevel=verbose &&\
echo "=== npm install completed ===" &&\
npm cache clean --force
COPY frontend/ ./