mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-08-09 03:17:48 +00:00
Move llama-cpp dependencies install to intermediary dependencies layer
This commit is contained in:
parent
5fc6b7c4c7
commit
62ed55e2ac
@ -7,7 +7,11 @@ RUN pip install pipx
|
|||||||
RUN pipx install poetry
|
RUN pipx install poetry
|
||||||
ENV PATH="/root/.local/bin:$PATH"
|
ENV PATH="/root/.local/bin:$PATH"
|
||||||
ENV PATH=".venv/bin/:$PATH"
|
ENV PATH=".venv/bin/:$PATH"
|
||||||
|
# https://python-poetry.org/docs/configuration/#virtualenvsin-project
|
||||||
|
ENV POETRY_VIRTUALENVS_IN_PROJECT=true
|
||||||
|
|
||||||
|
FROM base as dependencies
|
||||||
|
WORKDIR /home/worker/app
|
||||||
# Dependencies to build llama-cpp
|
# Dependencies to build llama-cpp
|
||||||
RUN apt update && apt install -y \
|
RUN apt update && apt install -y \
|
||||||
libopenblas-dev\
|
libopenblas-dev\
|
||||||
@ -15,14 +19,7 @@ RUN apt update && apt install -y \
|
|||||||
build-essential\
|
build-essential\
|
||||||
pkg-config\
|
pkg-config\
|
||||||
wget
|
wget
|
||||||
|
|
||||||
# https://python-poetry.org/docs/configuration/#virtualenvsin-project
|
|
||||||
ENV POETRY_VIRTUALENVS_IN_PROJECT=true
|
|
||||||
|
|
||||||
FROM base as dependencies
|
|
||||||
WORKDIR /home/worker/app
|
|
||||||
COPY pyproject.toml poetry.lock ./
|
COPY pyproject.toml poetry.lock ./
|
||||||
|
|
||||||
ARG POETRY_EXTRAS="ui embeddings-huggingface llms-llama-cpp vector-stores-qdrant"
|
ARG POETRY_EXTRAS="ui embeddings-huggingface llms-llama-cpp vector-stores-qdrant"
|
||||||
RUN poetry install --no-root --extras "${POETRY_EXTRAS}"
|
RUN poetry install --no-root --extras "${POETRY_EXTRAS}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user