fix: force frontend builder stage to native platform, fixes QEMU arm64 npm crash

This commit is contained in:
Pouzor
2026-03-28 14:23:21 +01:00
parent d9f3477780
commit 701c9c5bb9
+3 -1
View File
@@ -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