Use pre-built llama-cpp-python wheel in Khoj docker images

Reduces build time and resolves FileNotFoundError 'ninja' during
llama-cpp-python local build.
This commit is contained in:
Debanjum 2024-11-23 14:33:43 -08:00
parent 4ac49ca90f
commit 15ae22bdcf
2 changed files with 2 additions and 0 deletions

View file

@ -26,6 +26,7 @@ WORKDIR /app
COPY pyproject.toml .
COPY README.md .
ARG VERSION=0.0.0
ENV PIP_EXTRA_INDEX_URL=https://abetlen.github.io/llama-cpp-python/whl/cpu
RUN sed -i "s/dynamic = \\[\"version\"\\]/version = \"$VERSION\"/" pyproject.toml && \
pip install --no-cache-dir .

View file

@ -26,6 +26,7 @@ WORKDIR /app
COPY pyproject.toml .
COPY README.md .
ARG VERSION=0.0.0
ENV PIP_EXTRA_INDEX_URL=https://abetlen.github.io/llama-cpp-python/whl/cpu
RUN sed -i "s/dynamic = \\[\"version\"\\]/version = \"$VERSION\"/" pyproject.toml && \
pip install --no-cache-dir -e .[prod]