From 42f4e58bb4ab14883f6b2fd9f1371990578c02c2 Mon Sep 17 00:00:00 2001 From: Muhammad Ibrahim Date: Tue, 28 Oct 2025 16:51:39 +0000 Subject: [PATCH] fix: Add --ignore-scripts to prevent canvas native build in frontend The trianglify package depends on canvas, which tries to build native binaries requiring Python and build tools. Since canvas is not actually needed for the browser build (trianglify uses it only server-side), we can skip all install scripts with --ignore-scripts to avoid the build failure. This fixes the ARM64 and AMD64 frontend builds. --- docker/frontend.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/frontend.Dockerfile b/docker/frontend.Dockerfile index 082d35f..ec30b54 100644 --- a/docker/frontend.Dockerfile +++ b/docker/frontend.Dockerfile @@ -23,7 +23,7 @@ COPY frontend/package*.json ./ RUN npm cache clean --force &&\ rm -rf node_modules ~/.npm /root/.npm &&\ - npm install --omit=dev --legacy-peer-deps --no-audit --prefer-online --fetch-retries=0 + npm install --omit=dev --ignore-scripts --legacy-peer-deps --no-audit --prefer-online --fetch-retries=0 COPY frontend/ ./