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:
+2
-1
@@ -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 . .
|
||||||
|
|||||||
Reference in New Issue
Block a user