From 59ecd449b6f57c8d207cecae903ee05c4767a84b Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Sat, 10 Oct 2026 15:14:32 -0700 Subject: [PATCH] fix(docker): parameterize frontend platform build arg (#633) FROM --platform with a constant value triggers the FromPlatformFlagConstDisallowed lint rule. Move it to an ARG with a linux/amd64 default, keeping the no-arm-elm workaround while allowing overrides. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fb4d3cb..83c5d5e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,8 @@ ### Build frontend # Due to no official elm compiler for arm; build frontend with amd64. -FROM --platform=linux/amd64 node:20 AS frontend +ARG FRONTEND_PLATFORM=linux/amd64 +FROM --platform=${FRONTEND_PLATFORM} node:20 AS frontend RUN npm install -g node-gyp WORKDIR /build COPY . .