From bbb559d1cd7c6dc44904deabb4d8e60be1898b8b Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Sun, 28 Sep 2025 17:38:15 -0500 Subject: [PATCH] Attempt to work around known npm bug for ARM. --- docker/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 702ed7c3..f76199fd 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -7,10 +7,10 @@ ARG BASE_TAG=base FROM node:24 AS frontend-builder WORKDIR /app/frontend -COPY ./frontend /app/frontend - -# Install dependencies and build using npm -RUN npm install || (find /tmp -name build.log -exec cat {} \; && exit 1) +COPY frontend/package*.json ./ +# include platform marker so install layer is different per platform +RUN npm ci --prefer-offline --no-audit --unsafe-perm || (rm -rf node_modules package-lock.json && npm install --unsafe-perm) +COPY frontend/ ./ RUN npm run build RUN rm -rf node_modules .cache