C / Dockerfile
q6's picture
Support Hugging Face ZeroGPU
d239212
Raw History Blame Contribute Delete
673 Bytes
FROM nvidia/cuda:12.8.1-cudnn-runtime-ubuntu24.04
ENV DEBIAN_FRONTEND=noninteractive \
COMFYUI_PATH=/opt/ComfyUI \
DATA_DIR=/data \
PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y --no-install-recommends \
git libgl1 libglib2.0-0 python3 python3-pip python3-venv && \
rm -rf /var/lib/apt/lists/*
RUN git clone --depth 1 https://github.com/comfyanonymous/ComfyUI.git /opt/ComfyUI
WORKDIR /app
COPY requirements.txt .
RUN python3 -m pip install --no-cache-dir --break-system-packages \
--extra-index-url https://download.pytorch.org/whl/cu128 \
-r requirements.txt
COPY . .
RUN mkdir -p /data
EXPOSE 7860
CMD ["python3", "app.py"]