From 5f2edc5f7462eee48f04d2f0078a748d50c8d86f Mon Sep 17 00:00:00 2001 From: Alan Grainger <16197738+alangrainger@users.noreply.github.com> Date: Wed, 7 Oct 2026 15:01:35 +1300 Subject: [PATCH] Update build steps --- Dockerfile | 6 +++++- Dockerfile.upload | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1a05613..415e7d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,8 @@ -FROM node:lts-alpine AS builder +# The builder runs on the build host's own architecture whatever the target. +# Every production dependency is pure JavaScript and the native tooling +# (esbuild, rolldown, lightningcss) is dev-only, so the install and compile +# never need emulation; only the small runner stage below is built per target. +FROM --platform=$BUILDPLATFORM node:lts-alpine AS builder # /ipp must be node-owned for npm ci; WORKDIR leaves it root-owned on some builders RUN mkdir /ipp && chown node:node /ipp diff --git a/Dockerfile.upload b/Dockerfile.upload index 20cc976..1c6bd98 100644 --- a/Dockerfile.upload +++ b/Dockerfile.upload @@ -1,4 +1,8 @@ -FROM node:lts-alpine AS builder +# The builder runs on the build host's own architecture whatever the target. +# Every production dependency is pure JavaScript and the native tooling +# (esbuild, rolldown, lightningcss) is dev-only, so the install and compile +# never need emulation; only the small runner stage below is built per target. +FROM --platform=$BUILDPLATFORM node:lts-alpine AS builder # /ipp must be node-owned for npm ci; WORKDIR leaves it root-owned on some builders RUN mkdir /ipp && chown node:node /ipp