Dmitry1313 commited on
Commit
a9ee19b
·
verified ·
1 Parent(s): 60198ae

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -19
Dockerfile CHANGED
@@ -10,29 +10,17 @@ RUN apt-get update && apt-get install -y \
10
  libglib2.0-0 \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
- # Клонируем ComfyUI
14
- RUN git clone https://github.com/comfyanonymous/ComfyUI.git /comfyui
15
- WORKDIR /comfyui
16
-
17
- # Устанавливаем зависимости ComfyUI
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
- # Устанавливаем ComfyUI-Manager
21
- RUN git clone https://github.com/ltdrdata/ComfyUI-Manager.git custom_nodes/ComfyUI-Manager
22
-
23
- # Устанавливаем Reactor Node (для замены лиц)
24
- RUN git clone https://github.com/Gourieff/comfyui-reactor-node.git custom_nodes/comfyui-reactor-node
25
-
26
- # Скачиваем модель inswapper_128.onnx (ядро замены лиц)
27
- RUN mkdir -p models/insightface && \
28
- wget -O models/insightface/inswapper_128.onnx https://huggingface.co/ezioruan/inswapper_128.onnx/resolve/main/inswapper_128.onnx
29
 
30
- # Копируем наш скрипт для запуска API
31
- WORKDIR /app
32
  COPY app.py .
33
- COPY requirements.txt .
34
-
35
- RUN pip install --no-cache-dir -r requirements.txt
36
 
37
  # Открываем порт
38
  EXPOSE 7860
 
10
  libglib2.0-0 \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
+ # Копируем requirements.txt и устанавливаем Python-зависимости
14
+ COPY requirements.txt .
15
+ RUN pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu
 
 
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
+ # Скачиваем LoRA BFS Head V3
19
+ RUN wget -O /app/bfs_head_v3_qwen_image_edit_2509.safetensors \
20
+ https://huggingface.co/Alissonerdx/BFS-Best-Face-Swap/resolve/main/bfs_head_v3_qwen_image_edit_2509.safetensors
 
 
 
 
 
 
21
 
22
+ # Копируем исходный код
 
23
  COPY app.py .
 
 
 
24
 
25
  # Открываем порт
26
  EXPOSE 7860