mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
The UI image builds linux/amd64 and linux/arm64 on an x86_64 runner, so the arm64 leg runs the whole Node toolchain under QEMU emulation. That leg spent roughly 58 minutes on `npm ci` alone and never reached `npm run build`, tripping the 60-minute job timeout and cancelling the release before the chart could be packaged. The builder stage does not need to be per-architecture. next.config.mjs sets `output: "export"`, so the builder emits a static export to /app/out; plain HTML, CSS and JS with no native artifacts. Both runtime stages copy the same bytes, so the second, emulated build produced identical output at enormous cost. Pinning the builder to $BUILDPLATFORM runs it once on the runner's native architecture. Only the nginx runtime stays multi-arch, which is the stage that genuinely differs. Locally the full two-platform build drops from a stall to 39 seconds, and the `npm ci` stage goes from six scheduled lines to one, with both runtime legs still assembling. This does not apply to gateway, backend or migrations; those compile Python wheels, which really are architecture-specific. |
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||