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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
[Infra] Dockerfile.non_root: remove unused npm from runtime stage
Cursor Agent78485f5a3239
diff --git a/docker/Dockerfile.non_root b/docker/Dockerfile.non_rootindex fcfc901ae12..9f32f57c6f8 100644--- a/docker/Dockerfile.non_root+++ b/docker/Dockerfile.non_root@@ -110,33 +110,11 @@ WORKDIR /appUSER rootRUN for i in 1 2 3; do \- apk upgrade --no-cache && break || sleep 5; \+ apk upgrade --no-cache && break || sleep 5; \done && \for i in 1 2 3; do \- apk add --no-cache python3 bash openssl tzdata nodejs npm supervisor libsndfile && break || sleep 5; \- done && \- apk upgrade --no-cache nodejs && \- npm install -g [email protected] [email protected] [email protected] @isaacs/[email protected] [email protected] [email protected] && \- GLOBAL="$(npm root -g)" && \- find "$GLOBAL/npm" -type d -name "tar" -path "*/node_modules/tar" | while read d; do \- rm -rf "$d" && cp -rL "$GLOBAL/tar" "$d"; \- done && \- find "$GLOBAL/npm" -type d -name "glob" -path "*/node_modules/glob" | while read d; do \- rm -rf "$d" && cp -rL "$GLOBAL/glob" "$d"; \- done && \- find "$GLOBAL/npm" -type d -name "brace-expansion" -path "*/node_modules/@isaacs/brace-expansion" | while read d; do \- rm -rf "$d" && cp -rL "$GLOBAL/@isaacs/brace-expansion" "$d"; \- done && \- find "$GLOBAL/npm" -type d -name "minimatch" -path "*/node_modules/minimatch" | while read d; do \- rm -rf "$d" && cp -rL "$GLOBAL/minimatch" "$d"; \- done && \- find "$GLOBAL/npm" -type d -name "diff" -path "*/node_modules/diff" | while read d; do \- rm -rf "$d" && cp -rL "$GLOBAL/diff" "$d"; \- done && \- find /usr/local/lib /usr/lib -path "*/node_modules/npm/package.json" -exec \- sed -i 's/"tar": "\^7\.5\.[0-9]*"/"tar": "^7.5.10"/g; s/"minimatch": "\^10\.[0-9.]*"/"minimatch": "^10.2.4"/g' {} + 2>/dev/null && \- npm cache clean --force && \- { apk del --no-cache npm 2>/dev/null || true; }+ apk add --no-cache python3 bash openssl tzdata supervisor libsndfile nodejs && break || sleep 5; \+ doneCOPY --from=builder /app /appCOPY --from=builder /var/lib/litellm/ui /var/lib/litellm/ui