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