Yermek68 commited on
Commit
b5ca1ec
·
verified ·
1 Parent(s): 1c9ce33

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -13
Dockerfile CHANGED
@@ -1,18 +1,8 @@
1
  FROM python:3.10-slim
2
-
3
- # Устанавливаем системные зависимости
4
- RUN apt-get update && apt-get install -y git ffmpeg libsm6 libxext6 && rm -rf /var/lib/apt/lists/*
5
-
6
  WORKDIR /app
7
  COPY . /app
8
-
9
- # Полное удаление встроенных пакетов и установка нужных версий
10
- RUN pip install --no-cache-dir --upgrade pip \
11
- && pip uninstall -y gradio gradio-client spaces huggingface-hub || true \
12
- && pip install --no-cache-dir -r requirements.txt \
13
- && pip install --no-cache-dir "huggingface-hub==0.23.4" "transformers==4.46.0" "torch==2.4.1" \
14
- && pip check
15
-
16
  EXPOSE 7860
17
  CMD ["python", "app.py"]
18
-
 
1
  FROM python:3.10-slim
2
+ RUN apt-get update && apt-get install -y git ffmpeg libsm6 libxext6
 
 
 
3
  WORKDIR /app
4
  COPY . /app
5
+ RUN pip install --upgrade pip && pip install -r requirements.txt \
6
+ && pip install "huggingface-hub==0.23.4" "transformers==4.46.0" "torch==2.4.1"
 
 
 
 
 
 
7
  EXPOSE 7860
8
  CMD ["python", "app.py"]