Dmitry1313 commited on
Commit
583d098
·
verified ·
1 Parent(s): f06cc91

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -8
Dockerfile CHANGED
@@ -1,9 +1,8 @@
1
  FROM python:3.10-slim
2
 
3
- # 🔥 Системные зависимости (ОБНОВЛЕНО: добавлен curl!)
4
  RUN apt-get update && apt-get install -y --no-install-recommends \
5
  git \
6
- curl \ # ← 🔥 ДОБАВЛЕНО: нужен FaceFusion!
7
  ffmpeg \
8
  libgl1 \
9
  libglib2.0-0 \
@@ -11,29 +10,25 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
11
  libxext6 \
12
  libxrender1 \
13
  libgomp1 \
14
- ca-certificates \ # ← 🔥 Для HTTPS запросов
15
  && rm -rf /var/lib/apt/lists/* \
16
  && apt-get clean
17
 
18
  WORKDIR /app
19
 
20
- # 🔥 Python зависимости
21
  COPY requirements.txt .
22
  RUN pip install --no-cache-dir -r requirements.txt
23
 
24
- # 🔥 FaceFusion (стабильная версия)
25
  RUN git clone -b 3.0.0 https://github.com/facefusion/facefusion.git /facefusion
26
 
27
  WORKDIR /facefusion
28
  RUN pip install --no-cache-dir -r requirements.txt
29
 
30
- # 🔥 Предзагрузка моделей (теперь curl есть!)
31
- RUN python facefusion.py force-download --execution-provider cpu || echo "⚠️ Pre-download warning"
32
 
33
  WORKDIR /app
34
  COPY app.py .
35
 
36
- # 🔥 Переменные окружения
37
  ENV OMP_NUM_THREADS=4
38
  ENV FACEFUSION_CACHE=/tmp/facefusion_cache
39
  ENV PYTHONUNBUFFERED=1
 
1
  FROM python:3.10-slim
2
 
 
3
  RUN apt-get update && apt-get install -y --no-install-recommends \
4
  git \
5
+ curl \
6
  ffmpeg \
7
  libgl1 \
8
  libglib2.0-0 \
 
10
  libxext6 \
11
  libxrender1 \
12
  libgomp1 \
13
+ ca-certificates \
14
  && rm -rf /var/lib/apt/lists/* \
15
  && apt-get clean
16
 
17
  WORKDIR /app
18
 
 
19
  COPY requirements.txt .
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
 
22
  RUN git clone -b 3.0.0 https://github.com/facefusion/facefusion.git /facefusion
23
 
24
  WORKDIR /facefusion
25
  RUN pip install --no-cache-dir -r requirements.txt
26
 
27
+ RUN python facefusion.py force-download --execution-provider cpu || echo "Pre-download warning"
 
28
 
29
  WORKDIR /app
30
  COPY app.py .
31
 
 
32
  ENV OMP_NUM_THREADS=4
33
  ENV FACEFUSION_CACHE=/tmp/facefusion_cache
34
  ENV PYTHONUNBUFFERED=1