From c69eaebfd84d9ecb12aa4adc6fb17e8f8633f4f1 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Tue, 6 Feb 2024 19:23:27 -0800 Subject: [PATCH] (fix) dockerfile for semantic caching --- Dockerfile | 3 +++ Dockerfile.database | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0de52b8e7..0c3a2a33c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,6 +32,9 @@ RUN pip install dist/*.whl # install dependencies as wheels RUN pip wheel --no-cache-dir --wheel-dir=/wheels/ -r requirements.txt +# install semantic-cache [Experimental]- we need this here and not in requirements.txt because redisvl pins to pydantic 1.0 +RUN pip install redisvl==0.0.7 --no-deps + # Runtime stage FROM $LITELLM_RUNTIME_IMAGE as runtime diff --git a/Dockerfile.database b/Dockerfile.database index 9e9fb7fc4..8ceafc718 100644 --- a/Dockerfile.database +++ b/Dockerfile.database @@ -47,6 +47,9 @@ 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/ && rm -f *.whl && rm -rf /wheels +# install semantic-cache [Experimental]- we need this here and not in requirements.txt because redisvl pins to pydantic 1.0 +RUN pip install redisvl==0.0.7 --no-deps + # Generate prisma client RUN prisma generate RUN chmod +x entrypoint.sh