cobramv12 commited on
Commit
121d58d
·
verified ·
1 Parent(s): c6e7912

Add Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -0
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+ ENV PYTHONUNBUFFERED=1
5
+
6
+ RUN apt-get update && apt-get install -y \
7
+ git wget curl libgl1 libglib2.0-0 \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ WORKDIR /app
11
+
12
+ # Instalar ComfyUI
13
+ RUN git clone https://github.com/comfyanonymous/ComfyUI.git /app/ComfyUI
14
+
15
+ WORKDIR /app/ComfyUI
16
+
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+ RUN pip install --no-cache-dir \
19
+ xformers \
20
+ huggingface_hub
21
+
22
+ # Crear directorios de modelos
23
+ RUN mkdir -p models/checkpoints models/loras models/vae models/clip models/unet models/controlnet
24
+
25
+ # Script de inicio
26
+ COPY start.sh /app/start.sh
27
+ RUN chmod +x /app/start.sh
28
+
29
+ EXPOSE 7860
30
+
31
+ CMD ["/app/start.sh"]