From 8bfffd540d8fb3fb4e5a150d096a455038926494 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Thu, 23 Apr 2026 11:06:51 -0700 Subject: [PATCH] remove esbuild --- docker/dist-arm/server.Dockerfile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/docker/dist-arm/server.Dockerfile b/docker/dist-arm/server.Dockerfile index c9835067f..208574fe4 100644 --- a/docker/dist-arm/server.Dockerfile +++ b/docker/dist-arm/server.Dockerfile @@ -1,17 +1,16 @@ # --------------------- # Frontend build stage # --------------------- -FROM node:20-slim AS frontend-build - - +# Build on the host arch (BUILDPLATFORM) rather than under QEMU — the output is +# pure JS so it's arch-independent, and this avoids the esbuild host/native +# binary version mismatch under emulation. +FROM --platform=$BUILDPLATFORM node:20-slim AS frontend-build WORKDIR /app/client -COPY client/package.json ./ +COPY client/package*.json ./ -RUN npm install - -RUN npm install esbuild@0.25.5 --build-from-source +RUN npm ci COPY client ./