Spaces:
Runtime error
Runtime error
| 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"] | |