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]

Upgrade dependencies in dockerfile (#5862)

Jacob Hagstedt P Suorra9ec3365ba67c
diff --git a/Dockerfile b/Dockerfile
index 20022b07ae3..58dcfa9ac9d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -41,7 +41,7 @@ RUN pip install redisvl==0.0.7 --no-deps
# ensure pyjwt is used, not jwt
RUN pip uninstall jwt -y
RUN pip uninstall PyJWT -y
-RUN pip install PyJWT --no-cache-dir
+RUN pip install PyJWT==2.9.0 --no-cache-dir
# Build Admin UI
RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
diff --git a/Dockerfile.alpine b/Dockerfile.alpine
index 889cb3836d1..2cbebc38a5e 100644
--- a/Dockerfile.alpine
+++ b/Dockerfile.alpine
@@ -36,8 +36,8 @@ RUN pip wheel --no-cache-dir --wheel-dir=/wheels/ -r requirements.txt
# Runtime stage
FROM $LITELLM_RUNTIME_IMAGE AS runtime
-# Update dependencies and clean up - handles debian security issue
-RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
+# Update dependencies and clean up
+RUN apk update && apk upgrade && rm -rf /var/cache/apk/*
WORKDIR /app
diff --git a/Dockerfile.database b/Dockerfile.database
index 7434f5533f7..ecfa16e72a1 100644
--- a/Dockerfile.database
+++ b/Dockerfile.database
@@ -59,7 +59,7 @@ RUN pip install redisvl==0.0.7 --no-deps
# ensure pyjwt is used, not jwt
RUN pip uninstall jwt -y
RUN pip uninstall PyJWT -y
-RUN pip install PyJWT --no-cache-dir
+RUN pip install PyJWT==2.9.0 --no-cache-dir
# Build Admin UI
RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
diff --git a/Dockerfile.non_root b/Dockerfile.non_root
index 464f9c2c737..c3aba4b6534 100644
--- a/Dockerfile.non_root
+++ b/Dockerfile.non_root
@@ -59,7 +59,7 @@ RUN pip install redisvl==0.0.7 --no-deps
# ensure pyjwt is used, not jwt
RUN pip uninstall jwt -y
RUN pip uninstall PyJWT -y
-RUN pip install PyJWT --no-cache-dir
+RUN pip install PyJWT==2.9.0 --no-cache-dir
# Build Admin UI
RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
diff --git a/requirements.txt b/requirements.txt
index 659dcdc47ca..c756370b393 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -21,7 +21,7 @@ prometheus_client==0.20.0 # for /metrics endpoint on proxy
orjson==3.9.15 # fast /embedding responses
apscheduler==3.10.4 # for resetting budget in background
fastapi-sso==0.10.0 # admin UI, SSO
-pyjwt[crypto]==2.8.0
+pyjwt[crypto]==2.9.0
python-multipart==0.0.9 # admin UI
Pillow==10.3.0
azure-ai-contentsafety==1.0.0 # for azure content safety