Inspecta commited on
Commit
33ba7a3
·
verified ·
1 Parent(s): b436e03

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -9
Dockerfile CHANGED
@@ -1,23 +1,28 @@
1
  FROM python:3.10-slim
 
2
  WORKDIR /app
3
 
4
  RUN apt-get update && \
5
- apt-get install -y git wget && \
6
  rm -rf /var/lib/apt/lists/*
7
 
8
- # Clone dans sous-répertoire explicite
9
  RUN git clone https://github.com/comfyanonymous/ComfyUI.git /app/ComfyUI
10
 
 
11
  COPY requirements.txt .
12
- RUN pip install --no-cache-dir -r requirements.txt
13
-
14
  COPY download_models.py .
15
- RUN python download_models.py
16
-
17
  COPY app.py .
18
  COPY workflow_api.json .
19
 
20
- EXPOSE 7860
21
- CMD ["python", "app.py"]
 
 
 
 
 
 
22
 
23
- RUN ls -R /app/ComfyUI/models
 
 
1
  FROM python:3.10-slim
2
+
3
  WORKDIR /app
4
 
5
  RUN apt-get update && \
6
+ apt-get install -y git wget ffmpeg && \
7
  rm -rf /var/lib/apt/lists/*
8
 
9
+ # Clone ComfyUI
10
  RUN git clone https://github.com/comfyanonymous/ComfyUI.git /app/ComfyUI
11
 
12
+ # Copie des fichiers
13
  COPY requirements.txt .
 
 
14
  COPY download_models.py .
 
 
15
  COPY app.py .
16
  COPY workflow_api.json .
17
 
18
+ # Install Python deps
19
+ RUN pip install --no-cache-dir -r requirements.txt
20
+
21
+ # Téléchargement des modèles
22
+ RUN python download_models.py
23
+
24
+ # Exposer les ports ComfyUI + Gradio
25
+ EXPOSE 7860 8188
26
 
27
+ # Lancer ComfyUI en arrière-plan + Gradio en avant-plan
28
+ CMD bash -c "python3 ComfyUI/main.py --listen 0.0.0.0 --port 8188 --disable-auto-launch & sleep 5 && python3 app.py"