| FROM python:3.10-slim |
|
|
| WORKDIR /app |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| git \ |
| wget \ |
| curl \ |
| libgl1 \ |
| libglib2.0-0 \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN git clone https://github.com/comfyanonymous/ComfyUI.git . |
|
|
| |
| RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu |
| RUN pip install --no-cache-dir -r requirements.txt |
|
|
| |
| RUN mkdir -p \ |
| models/checkpoints \ |
| models/vae \ |
| models/loras \ |
| models/controlnet \ |
| models/upscale_models \ |
| models/clip_vision \ |
| models/embeddings \ |
| input \ |
| output |
|
|
| |
| ENV CUDA_VISIBLE_DEVICES="" |
| ENV PYTHONUNBUFFERED=1 |
|
|
| |
| EXPOSE 7860 |
|
|
| |
| CMD ["python", "main.py", "--listen", "0.0.0.0", "--port", "7860", "--cpu"] |