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
fix tar security issue with TAR
Ishaan Jaffera002907389c5
diff --git a/Dockerfile b/Dockerfileindex 2987a44b394..4bfda939110 100644--- a/Dockerfile+++ b/Dockerfile@@ -47,7 +47,8 @@ FROM $LITELLM_RUNTIME_IMAGE AS runtimeUSER root# Install runtime dependencies (libsndfile needed for audio processing on ARM64)-RUN apk add --no-cache bash openssl tzdata nodejs npm python3 py3-pip libsndfile+RUN apk add --no-cache bash openssl tzdata nodejs npm python3 py3-pip libsndfile && \+ npm install -g npm@latest tar@latestWORKDIR /app# Copy the current directory contents into the container at /appdiff --git a/docker/Dockerfile.custom_ui b/docker/Dockerfile.custom_uiindex c437929a27e..57926bcd170 100644--- a/docker/Dockerfile.custom_ui+++ b/docker/Dockerfile.custom_ui@@ -5,7 +5,8 @@ FROM ghcr.io/berriai/litellm:litellm_fwd_server_root_path-devWORKDIR /app# Install Node.js and npm (adjust version as needed)-RUN apt-get update && apt-get install -y nodejs npm+RUN apt-get update && apt-get install -y nodejs npm && \+ npm install -g npm@latest tar@latest# Copy the UI source into the containerCOPY ./ui/litellm-dashboard /app/ui/litellm-dashboarddiff --git a/docker/Dockerfile.database b/docker/Dockerfile.databaseindex 49655129506..24bf706434d 100644--- a/docker/Dockerfile.database+++ b/docker/Dockerfile.database@@ -49,7 +49,8 @@ FROM $LITELLM_RUNTIME_IMAGE AS runtimeUSER root# Install runtime dependencies-RUN apk add --no-cache bash openssl tzdata nodejs npm python3 py3-pip libsndfile+RUN apk add --no-cache bash openssl tzdata nodejs npm python3 py3-pip libsndfile && \+ npm install -g npm@latest tar@latestWORKDIR /app# Copy the current directory contents into the container at /appdiff --git a/docker/Dockerfile.dev b/docker/Dockerfile.devindex 67966f9c739..ae557d4647f 100644--- a/docker/Dockerfile.dev+++ b/docker/Dockerfile.dev@@ -61,7 +61,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \libatomic1 \nodejs \npm \- && rm -rf /var/lib/apt/lists/*+ && rm -rf /var/lib/apt/lists/* \+ && npm install -g npm@latest tar@latestWORKDIR /appdiff --git a/docker/Dockerfile.non_root b/docker/Dockerfile.non_rootindex 48109d81a2c..9ff27e07494 100644--- a/docker/Dockerfile.non_root+++ b/docker/Dockerfile.non_root@@ -104,7 +104,8 @@ RUN for i in 1 2 3; do \done \&& for i in 1 2 3; do \apk add --no-cache python3 py3-pip bash openssl tzdata nodejs npm supervisor && break || sleep 5; \- done+ done \+ && npm install -g npm@latest tar@latest# Copy artifacts from builderCOPY --from=builder /app/requirements.txt /app/requirements.txt