File size: 597 Bytes
f350f16
33ba7a3
f350f16
 
b8c13f6
b26e4d5
b8c13f6
b26e4d5
 
b8c13f6
53d5aa6
f350f16
b8c13f6
b26e4d5
33ba7a3
 
b8c13f6
 
33ba7a3
 
b8c13f6
 
 
0f581d3
b8c13f6
 
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
FROM python:3.10-slim

WORKDIR /app

# Install system dependencies
RUN apt-get update && \
    apt-get install -y git wget && \
    rm -rf /var/lib/apt/lists/*

# Clone ComfyUI into /app/ComfyUI
RUN git clone https://github.com/comfyanonymous/ComfyUI.git /app/ComfyUI

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

# Download models into ComfyUI structure
COPY download_models.py .
RUN python download_models.py

# Copy app code and workflow
COPY app.py .
COPY workflow_api.json .

EXPOSE 7860
CMD ["python", "app.py"]