diff --git a/Dockerfile b/Dockerfile index 20022b07a..58dcfa9ac 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 889cb3836..2cbebc38a 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 7434f5533..ecfa16e72 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 464f9c2c7..c3aba4b65 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 659dcdc47..c756370b3 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