AnatoliiG commited on
Commit
aa1dc9a
·
1 Parent(s): ca2537d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -1,10 +1,11 @@
1
  FROM python:3.10-slim-bookworm
2
 
3
- # Добавили libopenblas-dev (заголовки для компилятора) и git
4
  RUN apt-get update && apt-get install -y --no-install-recommends \
5
  build-essential \
6
  cmake \
7
  git \
 
8
  libopenblas-dev \
9
  libopenblas0 \
10
  libgomp1 \
@@ -22,7 +23,7 @@ RUN pip install --no-cache-dir --upgrade pip
22
 
23
  COPY --chown=user requirements.txt .
24
 
25
- # Флаги компиляции: заставляем llama.cpp использовать OpenBLAS
26
  ENV CMAKE_ARGS="-DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS"
27
 
28
  RUN pip install --no-cache-dir -r requirements.txt
 
1
  FROM python:3.10-slim-bookworm
2
 
3
+ # Добавили pkg-config, чтобы CMake смог правильно слинковать OpenBLAS
4
  RUN apt-get update && apt-get install -y --no-install-recommends \
5
  build-essential \
6
  cmake \
7
  git \
8
+ pkg-config \
9
  libopenblas-dev \
10
  libopenblas0 \
11
  libgomp1 \
 
23
 
24
  COPY --chown=user requirements.txt .
25
 
26
+ # Флаги компиляции для OpenBLAS
27
  ENV CMAKE_ARGS="-DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS"
28
 
29
  RUN pip install --no-cache-dir -r requirements.txt