Dmitry1313 commited on
Commit
0825cba
·
verified ·
1 Parent(s): 2b23a98

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -2,6 +2,7 @@
2
  FROM python:3.10-slim
3
 
4
  # 🔥 Системные зависимости
 
5
  RUN apt-get update && apt-get install -y --no-install-recommends \
6
  ffmpeg \
7
  libgl1 \
@@ -14,6 +15,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
14
  libdbus-1-3 \
15
  curl \
16
  git \
 
 
17
  && apt-get clean \
18
  && rm -rf /var/lib/apt/lists/*
19
 
@@ -27,8 +30,8 @@ RUN pip install --no-cache-dir -r requirements.txt
27
  # 🔥 2. Клонируем FaceFusion
28
  RUN git clone --depth 1 --branch 3.0.1 https://github.com/facefusion/facefusion.git /facefusion
29
 
30
- # 🔥 3. 🔑 Устанавливаем зависимости FaceFusion
31
- # 🔥 ИСПРАВЛЕНО: --extra-index-url вместо --index-url!
32
  RUN pip install --no-cache-dir \
33
  numpy==1.24.4 \
34
  opencv-python-headless==4.8.1.78 \
 
2
  FROM python:3.10-slim
3
 
4
  # 🔥 Системные зависимости
5
+ # 🔑 ДОБАВЛЕНО: build-essential для компиляции insightface
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
  ffmpeg \
8
  libgl1 \
 
15
  libdbus-1-3 \
16
  curl \
17
  git \
18
+ build-essential \
19
+ cmake \
20
  && apt-get clean \
21
  && rm -rf /var/lib/apt/lists/*
22
 
 
30
  # 🔥 2. Клонируем FaceFusion
31
  RUN git clone --depth 1 --branch 3.0.1 https://github.com/facefusion/facefusion.git /facefusion
32
 
33
+ # 🔥 3. Устанавливаем зависимости FaceFusion
34
+ # 🔑 ИСПРАВЛЕНО: --extra-index-url для PyTorch
35
  RUN pip install --no-cache-dir \
36
  numpy==1.24.4 \
37
  opencv-python-headless==4.8.1.78 \