Dockerfile improvements

The second build of the UI is useless and slow down the build process.
This commit is contained in:
Daniele Scasciafratte 2025-02-25 10:28:14 +01:00 committed by GitHub
parent de8497309b
commit 01151b451a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,13 +41,9 @@ RUN pip wheel --no-cache-dir --wheel-dir=/wheels/ -r requirements.txt
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 uninstall jwt PyJWT -y
RUN pip install PyJWT==2.9.0 --no-cache-dir
# Build Admin UI
RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh
# Runtime stage
FROM $LITELLM_RUNTIME_IMAGE AS runtime