From 15e71e0e709cc5db90ddb8c97b1906b7588b6c80 Mon Sep 17 00:00:00 2001 From: Matthew Daubney Date: Fri, 20 Nov 2026 23:30:30 +0000 Subject: [PATCH] Dockerfile: run the Node build stage on the builder's platform Cross-building under emulation failed on the arm64 runner; the stage only emits static files. Co-Authored-By: Claude Sonnet 5.5 --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5d7efa0..8c6da47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ -FROM node:22-alpine AS build +# The build stage only emits static files, so it runs on the builder's own architecture; only the nginx stage +# takes the target platform (linux/amd64, set in the release workflow). No emulation needed. +FROM --platform=$BUILDPLATFORM node:22-alpine AS build WORKDIR /app COPY package.json package-lock.json ./ RUN npm ci