VOIDER commited on
Commit
1ff7a51
·
verified ·
1 Parent(s): f30ac2b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -3,8 +3,9 @@ FROM ghcr.io/abetlen/llama-cpp-python:latest
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
@@ -14,4 +15,5 @@ COPY app.py .
14
  ENV PYTHONUNBUFFERED=1 \
15
  GRADIO_SERVER_NAME="0.0.0.0"
16
 
17
- CMD ["python", "app.py"]
 
 
3
  USER root
4
  WORKDIR /workspace
5
 
6
+ # Обновляем pip и устанавливаем зависимости
7
+ RUN pip install --no-cache-dir --upgrade pip && \
8
+ pip install --no-cache-dir \
9
  gradio \
10
  huggingface-hub \
11
  Pillow
 
15
  ENV PYTHONUNBUFFERED=1 \
16
  GRADIO_SERVER_NAME="0.0.0.0"
17
 
18
+ # Запуск с полным выводом ошибок
19
+ CMD ["python", "-u", "app.py"]