fix: Ensure rollup ARM64 native binaries are installed in frontend build

Removed --ignore-scripts flag and added cache cleanup to ensure optional
dependencies like @rollup/rollup-linux-arm64-musl are properly installed.
This mirrors the fix applied to the backend Dockerfile for ARM64 support.
This commit is contained in:
Muhammad Ibrahim
2025-10-28 16:39:27 +00:00
parent 1e617c8bb8
commit 6792f96af9

View File

@@ -22,7 +22,9 @@ WORKDIR /app
COPY package*.json ./
COPY frontend/package*.json ./frontend/
RUN npm ci --ignore-scripts
RUN npm cache clean --force &&\
rm -rf node_modules ~/.npm /root/.npm &&\
npm ci --legacy-peer-deps --no-audit --prefer-online --fetch-retries=0
COPY frontend/ ./frontend/