From 59ea87046b89c640aba09b8b0bab7524bfb9f9fb Mon Sep 17 00:00:00 2001 From: Harshit Jain <48647625+Harshit28j@users.noreply.github.com> Date: Wed, 11 Feb 2026 18:04:23 +0000 Subject: [PATCH] fix build for workflow --- docker/Dockerfile.non_root | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile.non_root b/docker/Dockerfile.non_root index f87f10653f6..3335984b959 100644 --- a/docker/Dockerfile.non_root +++ b/docker/Dockerfile.non_root @@ -62,8 +62,10 @@ COPY . . ENV LITELLM_NON_ROOT=true # Build Admin UI using the upstream command order while keeping a single RUN layer +# NOTE: Do NOT run `npm install -g npm@latest` here — the upgraded binary can +# contain ARM-specific instructions that crash under QEMU when cross-building +# for linux/arm64. The system npm from apk is sufficient for building the UI. RUN mkdir -p /var/lib/litellm/ui && \ - npm install -g npm@latest && npm cache clean --force && \ cd /app/ui/litellm-dashboard && \ if [ -f "/app/enterprise/enterprise_ui/enterprise_colors.json" ]; then \ cp /app/enterprise/enterprise_ui/enterprise_colors.json ./ui_colors.json; \