VOIDER commited on
Commit
28178bb
·
verified ·
1 Parent(s): c97ea61

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -21
Dockerfile CHANGED
@@ -1,31 +1,17 @@
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"]
 
1
+ FROM ghcr.io/abetlen/llama-cpp-python:latest
2
 
3
+ USER root
4
+ WORKDIR /workspace
5
 
6
+ # Install dependencies for vision
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  RUN pip install --no-cache-dir \
8
  gradio \
9
+ huggingface-hub \
10
  Pillow
11
 
 
12
  COPY app.py .
13
 
14
+ ENV PYTHONUNBUFFERED=1 \
15
+ GRADIO_SERVER_NAME="0.0.0.0"
16
 
 
17
  CMD ["python", "app.py"]