Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

[Fix] Dockerfile.non_root: install node-gyp for npm ci

Yuneng Jiangfa629c307c31
diff --git a/docker/Dockerfile.non_root b/docker/Dockerfile.non_root
index 1cf6c0dfd15..bf1af9ed756 100644
--- a/docker/Dockerfile.non_root
+++ b/docker/Dockerfile.non_root
@@ -46,7 +46,10 @@ ENV LITELLM_NON_ROOT=true
# package-lock.json with pinned versions + integrity hashes.
RUN mkdir -p /var/lib/litellm/ui && \
mv /app/.npmrc /app/.npmrc.bak && \
- npm install -g [email protected] && npm cache clean --force && \
+ npm install -g [email protected] && \
+ npm install -g [email protected] && \
+ ln -sf /usr/local/lib/node_modules/node-gyp /usr/lib/node_modules/npm/node_modules/node-gyp && \
+ 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; \