Rid3 commited on
Commit
8a85a2d
·
verified ·
1 Parent(s): f8d5ab3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM python:3.10-slim
2
 
3
- # Устанавливаем только самое необходимое
4
  RUN apt-get update && apt-get install -y \
5
  libopenblas-dev \
6
  curl \
@@ -11,10 +11,10 @@ WORKDIR /app
11
  # Основные пакеты
12
  RUN pip install --no-cache-dir fastapi uvicorn huggingface_hub pydantic
13
 
14
- # 🔥 Самый быстрый способ готовый pre-built wheel (не собирается из исходников)
15
- RUN pip install https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.19/llama_cpp_python-0.3.19-cp310-cp310-linux_x86_64.whl
16
 
17
- # Создаём непривилегированного пользователя
18
  RUN useradd -m -u 1000 user
19
  USER user
20
 
 
1
  FROM python:3.10-slim
2
 
3
+ # Системные зависимости
4
  RUN apt-get update && apt-get install -y \
5
  libopenblas-dev \
6
  curl \
 
11
  # Основные пакеты
12
  RUN pip install --no-cache-dir fastapi uvicorn huggingface_hub pydantic
13
 
14
+ # 🔥 РАБОЧЕЕ КОЛЕСО ДЛЯ HF SPACES (glibc)
15
+ RUN pip install https://huggingface.co/Luigi/llama-cpp-python-wheels-hf-spaces-free-cpu/resolve/main/llama_cpp_python-0.3.22-cp310-cp310-linux_x86_64.whl
16
 
17
+ # Пользователь (требование HF Spaces)
18
  RUN useradd -m -u 1000 user
19
  USER user
20