forked from phoenix/litellm-mirror
Upgrade dependencies in dockerfile (#5862)
* Upgrade dependencies in dockerfile * Change apt-get to apk for alpine image * Set requirements file to same as dockerfile --------- Co-authored-by: Jacob Hagstedt <wcgs@novonordisk.com>
This commit is contained in:
parent
52e971155a
commit
9ec3365ba6
5 changed files with 6 additions and 6 deletions
|
@ -41,7 +41,7 @@ RUN pip install redisvl==0.0.7 --no-deps
|
||||||
# ensure pyjwt is used, not jwt
|
# ensure pyjwt is used, not jwt
|
||||||
RUN pip uninstall jwt -y
|
RUN pip uninstall jwt -y
|
||||||
RUN pip uninstall PyJWT -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
|
# Build Admin UI
|
||||||
RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
|
RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
|
||||||
|
|
|
@ -36,8 +36,8 @@ RUN pip wheel --no-cache-dir --wheel-dir=/wheels/ -r requirements.txt
|
||||||
# Runtime stage
|
# Runtime stage
|
||||||
FROM $LITELLM_RUNTIME_IMAGE AS runtime
|
FROM $LITELLM_RUNTIME_IMAGE AS runtime
|
||||||
|
|
||||||
# Update dependencies and clean up - handles debian security issue
|
# Update dependencies and clean up
|
||||||
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
|
RUN apk update && apk upgrade && rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ RUN pip install redisvl==0.0.7 --no-deps
|
||||||
# ensure pyjwt is used, not jwt
|
# ensure pyjwt is used, not jwt
|
||||||
RUN pip uninstall jwt -y
|
RUN pip uninstall jwt -y
|
||||||
RUN pip uninstall PyJWT -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
|
# Build Admin UI
|
||||||
RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
|
RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
|
||||||
|
|
|
@ -59,7 +59,7 @@ RUN pip install redisvl==0.0.7 --no-deps
|
||||||
# ensure pyjwt is used, not jwt
|
# ensure pyjwt is used, not jwt
|
||||||
RUN pip uninstall jwt -y
|
RUN pip uninstall jwt -y
|
||||||
RUN pip uninstall PyJWT -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
|
# Build Admin UI
|
||||||
RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
|
RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
|
||||||
|
|
|
@ -21,7 +21,7 @@ prometheus_client==0.20.0 # for /metrics endpoint on proxy
|
||||||
orjson==3.9.15 # fast /embedding responses
|
orjson==3.9.15 # fast /embedding responses
|
||||||
apscheduler==3.10.4 # for resetting budget in background
|
apscheduler==3.10.4 # for resetting budget in background
|
||||||
fastapi-sso==0.10.0 # admin UI, SSO
|
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
|
python-multipart==0.0.9 # admin UI
|
||||||
Pillow==10.3.0
|
Pillow==10.3.0
|
||||||
azure-ai-contentsafety==1.0.0 # for azure content safety
|
azure-ai-contentsafety==1.0.0 # for azure content safety
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue