Spaces:
Runtime error
Runtime error
Download Dockerfile from Inspecta/DMD2_InstantID_Faceswap: direct link, hf CLI and curl.
- Browser
- Download file 597 Bytes
-
https://huggingface.co/spaces/Inspecta/DMD2_InstantID_Faceswap/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Inspecta/DMD2_InstantID_Faceswap/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Inspecta/DMD2_InstantID_Faceswap/resolve/main/Dockerfile
597 Bytes
| 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"] | |