Dashboard stage builds on the build machine's CPU
Its output is the same on every platform. Under emulation for an arm64 image this stage alone took 31 of 33 minutes, now about 2.
This commit is contained in:
+4
-1
@@ -8,7 +8,10 @@
|
||||
# default is the minimal engine.
|
||||
|
||||
# ── Dashboard ────────────────────────────────────────────────────
|
||||
FROM oven/bun:1 AS frontend
|
||||
# Built on the build machine's own CPU: the output is the same for every
|
||||
# platform, and under emulation for an arm64 image this stage alone takes
|
||||
# half an hour.
|
||||
FROM --platform=$BUILDPLATFORM oven/bun:1 AS frontend
|
||||
|
||||
WORKDIR /app
|
||||
COPY package.json bun.lock /app/
|
||||
|
||||
Reference in New Issue
Block a user