alphabagibagi commited on
Commit
7bf725b
Β·
verified Β·
1 Parent(s): 29a9839

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +34 -0
Dockerfile ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM pytorch/pytorch:2.1.2-cuda12.1-cudnn8-runtime
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ git \
8
+ aria2 \
9
+ libgl1-mesa-glx \
10
+ libglib2.0-0 \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Set working directory
14
+ WORKDIR /app
15
+
16
+ # Copy requirements and install
17
+ COPY requirements.txt .
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
+
20
+ # Create necessary directories to ensure permissions
21
+ RUN mkdir -p ComfyUI/models/unet \
22
+ ComfyUI/models/clip \
23
+ ComfyUI/models/vae \
24
+ ComfyUI/models/loras/FusionX \
25
+ ComfyUI/custom_nodes/ComfyUI-GGUF
26
+
27
+ # Copy application code
28
+ COPY . .
29
+
30
+ # Expose Gradio port
31
+ EXPOSE 7860
32
+
33
+ # Run the application
34
+ CMD ["python", "app.py"]