add semantic_router

This commit is contained in:
Ishaan Jaff 2025-07-24 16:39:53 -07:00
parent ea2ae786c6
commit 537b672887
3 changed files with 6 additions and 1 deletions

View file

@ -35,6 +35,8 @@ RUN pip install dist/*.whl
# install dependencies as wheels
RUN pip wheel --no-cache-dir --wheel-dir=/wheels/ -r requirements.txt
# install semantic_router without dependencies to avoid litellm conflict
RUN pip wheel --no-cache-dir --wheel-dir=/wheels/ --no-deps semantic_router==0.1.10
# ensure pyjwt is used, not jwt
RUN pip uninstall jwt -y

View file

@ -35,6 +35,8 @@ RUN pip install dist/*.whl
# install dependencies as wheels
RUN pip wheel --no-cache-dir --wheel-dir=/wheels/ -r requirements.txt
# install semantic_router without dependencies to avoid litellm conflict
RUN pip wheel --no-cache-dir --wheel-dir=/wheels/ --no-deps semantic_router==0.1.10
# Runtime stage
FROM $LITELLM_RUNTIME_IMAGE AS runtime

View file

@ -22,7 +22,8 @@ RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh
# Build package and wheel dependencies
RUN rm -rf dist/* && python -m build && \
pip install dist/*.whl && \
pip wheel --no-cache-dir --wheel-dir=/wheels/ -r requirements.txt
pip wheel --no-cache-dir --wheel-dir=/wheels/ -r requirements.txt && \
pip wheel --no-cache-dir --wheel-dir=/wheels/ --no-deps semantic_router==0.1.10
# -----------------
# Runtime Stage