AnatoliiG commited on
Commit
30c91aa
·
1 Parent(s): f5b1696

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -9,6 +9,7 @@ ENV PYTHONUNBUFFERED=1 \
9
 
10
  WORKDIR /app
11
 
 
12
  RUN apt-get update && apt-get install -y --no-install-recommends \
13
  curl \
14
  libgomp1 \
@@ -19,15 +20,12 @@ RUN useradd -m -u 1000 user
19
  USER user
20
  RUN mkdir -p $HF_HOME
21
 
22
- # 1. Сначала ставим обычные библиотеки
23
  COPY --chown=user requirements.txt requirements.txt
24
  RUN pip install --no-cache-dir --upgrade pip && \
25
  pip install --no-cache-dir -r requirements.txt
26
 
27
  RUN pip install --no-cache-dir \
28
- llama-cpp-python \
29
- --extra-index-url https://jllllll.github.io/llama-cpp-python-cuBLAS-wheels/AVX2/cpu \
30
- --prefer-binary
31
 
32
  # Копируем код
33
  COPY --chown=user app.py app.py
 
9
 
10
  WORKDIR /app
11
 
12
+ # Устанавливаем системные зависимости
13
  RUN apt-get update && apt-get install -y --no-install-recommends \
14
  curl \
15
  libgomp1 \
 
20
  USER user
21
  RUN mkdir -p $HF_HOME
22
 
 
23
  COPY --chown=user requirements.txt requirements.txt
24
  RUN pip install --no-cache-dir --upgrade pip && \
25
  pip install --no-cache-dir -r requirements.txt
26
 
27
  RUN pip install --no-cache-dir \
28
+ https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.1/llama_cpp_python-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
 
 
29
 
30
  # Копируем код
31
  COPY --chown=user app.py app.py