From bc7d6017323e22641091dac5fd28712b932d8473 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 5 Jul 2026 15:30:15 +0000 Subject: [PATCH] fix: use native builder platform in Dockerfile.frontend to avoid QEMU hangs The Docker build for the frontend was hanging on the arm64 platform due to a QEMU 'illegal instruction' crash during 'npm ci'. This change updates 'Dockerfile.frontend' to use 'FROM --platform=$BUILDPLATFORM' for the builder stage, ensuring that the Next.js static build runs natively on the host architecture (amd64) instead of being emulated. This avoids the emulation crash and significantly speeds up the build process. Co-authored-by: VulcanoSoftware <113239901+VulcanoSoftware@users.noreply.github.com> --- Dockerfile.frontend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.frontend b/Dockerfile.frontend index 022cb15..6378f21 100644 --- a/Dockerfile.frontend +++ b/Dockerfile.frontend @@ -1,6 +1,6 @@ # Multi-stage build # Stage 1: Build the Next.js application -FROM node:22-alpine AS builder +FROM --platform=$BUILDPLATFORM node:22-alpine AS builder # Set working directory WORKDIR /app