1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2026-10-29 05:32:31 +00:00

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.
This commit is contained in:
James Hillyerd
2026-10-10 15:14:32 -07:00
committed by GitHub
parent 742249691d
commit 59ecd449b6
+2 -1
View File
@@ -2,7 +2,8 @@
### Build frontend ### Build frontend
# Due to no official elm compiler for arm; build frontend with amd64. # 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 RUN npm install -g node-gyp
WORKDIR /build WORKDIR /build
COPY . . COPY . .