From b35f34ae73176850f049d722db79bd9a2e6d6992 Mon Sep 17 00:00:00 2001 From: Pouzor Date: Sat, 28 Mar 2026 14:23:21 +0100 Subject: [PATCH] fix: force frontend builder stage to native platform, fixes QEMU arm64 npm crash --- Dockerfile.frontend | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile.frontend b/Dockerfile.frontend index a492af7..3e57107 100644 --- a/Dockerfile.frontend +++ b/Dockerfile.frontend @@ -1,5 +1,7 @@ # Stage 1: build -FROM node:20-alpine AS builder +# Use the native build platform so npm ci never runs under QEMU emulation. +# The build output (static HTML/JS/CSS) is platform-independent. +FROM --platform=$BUILDPLATFORM node:20-alpine AS builder ARG VITE_STANDALONE=false ENV VITE_STANDALONE=$VITE_STANDALONE