Ibraaheem commited on
Commit
9be41cb
·
1 Parent(s): e033c65

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -1
Dockerfile CHANGED
@@ -7,6 +7,15 @@ RUN python3 -m pipx ensurepath
7
  RUN pipx install poetry
8
  ENV PATH="/root/.local/bin:$PATH"
9
 
 
 
 
 
 
 
 
 
 
10
  # https://python-poetry.org/docs/configuration/#virtualenvsin-project
11
  ENV POETRY_VIRTUALENVS_IN_PROJECT=true
12
 
@@ -18,7 +27,7 @@ COPY pyproject.toml poetry.lock ./
18
  COPY pyproject.toml poetry.lock ./
19
  RUN poetry config installer.max-workers 10
20
  RUN poetry lock --no-update
21
- RUN poetry install --extras chroma
22
  RUN pip install fastapi uvicorn
23
 
24
  FROM base as app
 
7
  RUN pipx install poetry
8
  ENV PATH="/root/.local/bin:$PATH"
9
 
10
+ # Dependencies to build llama-cpp
11
+ RUN apt update && apt install -y \
12
+ libopenblas-dev\
13
+ ninja-build\
14
+ build-essential\
15
+ pkg-config\
16
+ wget
17
+
18
+
19
  # https://python-poetry.org/docs/configuration/#virtualenvsin-project
20
  ENV POETRY_VIRTUALENVS_IN_PROJECT=true
21
 
 
27
  COPY pyproject.toml poetry.lock ./
28
  RUN poetry config installer.max-workers 10
29
  RUN poetry lock --no-update
30
+ RUN poetry install --with local --extras chroma
31
  RUN pip install fastapi uvicorn
32
 
33
  FROM base as app