File size: 734 Bytes
7bf725b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM pytorch/pytorch:2.1.2-cuda12.1-cudnn8-runtime

ENV DEBIAN_FRONTEND=noninteractive

# Install system dependencies
RUN apt-get update && apt-get install -y \
    git \
    aria2 \
    libgl1-mesa-glx \
    libglib2.0-0 \
    && rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /app

# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Create necessary directories to ensure permissions
RUN mkdir -p ComfyUI/models/unet \
    ComfyUI/models/clip \
    ComfyUI/models/vae \
    ComfyUI/models/loras/FusionX \
    ComfyUI/custom_nodes/ComfyUI-GGUF

# Copy application code
COPY . .

# Expose Gradio port
EXPOSE 7860

# Run the application
CMD ["python", "app.py"]