From d74e86515752a317b1244a746620a29fa51ca1ae Mon Sep 17 00:00:00 2001 From: Jan Fuhrer Date: Mon, 7 Sep 2026 10:49:28 +0200 Subject: [PATCH] fix(docs): build image stage on native platform vite build crashes with SIGILL under QEMU arm64 emulation (V8 JIT and Rolldown's native binary). The build output is arch-independent JS, so run the build stage on BUILDPLATFORM and keep only the runtime stage multi-arch. --- services/docs/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/docs/Dockerfile b/services/docs/Dockerfile index b860524..e319db4 100644 --- a/services/docs/Dockerfile +++ b/services/docs/Dockerfile @@ -1,4 +1,6 @@ -FROM node:26-alpine AS build +# Build natively on the builder's platform; the vite output is arch-independent. +# Building under QEMU emulation crashes V8/Rolldown with SIGILL on arm64. +FROM --platform=$BUILDPLATFORM node:26-alpine AS build WORKDIR /app