VOIDER commited on
Commit
c97ea61
·
verified ·
1 Parent(s): 9c9f751

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -0
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Устанавливаем системные зависимости
6
+ RUN apt-get update && apt-get install -y \
7
+ build-essential \
8
+ cmake \
9
+ git \
10
+ libgomp1 \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Устанавливаем llama-cpp-python с предкомпилированными бинарниками
14
+ RUN pip install --no-cache-dir \
15
+ llama-cpp-python==0.3.2 \
16
+ --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
17
+
18
+ # Устанавливаем остальные зависимости
19
+ RUN pip install --no-cache-dir \
20
+ gradio \
21
+ huggingface_hub \
22
+ Pillow
23
+
24
+ # Копируем приложение
25
+ COPY app.py .
26
+
27
+ # Порт
28
+ EXPOSE 7860
29
+
30
+ # Запуск
31
+ CMD ["python", "app.py"]