fix(docker): copy local litellm-proxy-extras migrations into Docker image to fix 500 errors
Some checks failed
Unit Tests: Proxy DB Operations / proxy-db (auth-checks, tests/proxy_unit_tests/test_auth_checks.py tests/proxy_unit_tests/test_user_api_key_auth.py, 20, 8) (push) Has been cancelled
Unit Tests: Proxy DB Operations / proxy-db (key-generation, tests/proxy_unit_tests/test_key_generate_prisma.py, 30, 0) (push) Has been cancelled
Unit Tests: Proxy DB Operations / proxy-db (remaining, tests/proxy_unit_tests --ignore=tests/proxy_unit_tests/test_key_generate_prisma.py --ignore=tests/proxy_unit_tests/test_auth_checks.py --ignore=tests/proxy_unit_tests/test_user_api_key_auth.py, 20, 8) (push) Has been cancelled
Unit Tests: Security / security (push) Has been cancelled

This commit is contained in:
Ishaan Jaffer 2026-04-11 12:30:53 -07:00
parent d22a07a9ba
commit e5824b1ec2
No known key found for this signature in database

View file

@ -84,6 +84,11 @@ COPY --from=builder /wheels/ /wheels/
# Install the built wheel using pip; again using a wildcard if it's the only file
RUN pip install *.whl /wheels/* --no-index --find-links=/wheels/ --no-deps && rm -f *.whl && rm -rf /wheels
# Copy local litellm-proxy-extras migrations into installed package
# (PyPI version 0.4.65 may lag behind migrations needed for new schema columns)
RUN SITE_PACKAGES=$(python3 -c "import site; print(site.getsitepackages()[0])") && \
cp -r /app/litellm-proxy-extras/litellm_proxy_extras/migrations/ "$SITE_PACKAGES/litellm_proxy_extras/migrations/"
# SECURITY FIX: nodejs-wheel-binaries (pip package used by Prisma) bundles a complete
# npm with old vulnerable deps at /usr/lib/python3.*/site-packages/nodejs_wheel/.
# Patch every copy of tar, glob, and brace-expansion inside that tree.