Dmitry Beresnev commited on
Commit
4ec7108
·
1 Parent(s): aa508f1

fix dockerfile, pyproject.toml

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -1,14 +1,19 @@
1
  FROM python:3.12-slim
2
 
 
 
 
 
 
 
3
  RUN pip install --no-cache-dir uv
4
 
5
  WORKDIR /app
6
 
7
  COPY pyproject.toml /app/pyproject.toml
8
 
9
- # Install dependencies with binary wheels (avoid compilation)
10
- ENV CMAKE_ARGS="-DLLAMA_BLAS=OFF -DLLAMA_AVX2=OFF" \
11
- FORCE_CMAKE=0
12
  RUN uv pip install --system -r pyproject.toml
13
 
14
  COPY . /app
 
1
  FROM python:3.12-slim
2
 
3
+ # Install build dependencies for llama-cpp-python
4
+ RUN apt-get update && apt-get install -y --no-install-recommends \
5
+ gcc \
6
+ g++ \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
  RUN pip install --no-cache-dir uv
10
 
11
  WORKDIR /app
12
 
13
  COPY pyproject.toml /app/pyproject.toml
14
 
15
+ # Install dependencies (llama-cpp-python will compile but with minimal features)
16
+ ENV CMAKE_ARGS="-DLLAMA_BLAS=OFF -DLLAMA_AVX2=OFF -DLLAMA_FMA=OFF -DLLAMA_F16C=OFF"
 
17
  RUN uv pip install --system -r pyproject.toml
18
 
19
  COPY . /app