This commit is contained in:
Juan 2026-04-19 15:58:43 +02:00 committed by GitHub
commit d23e5c67cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

31
Dockerfile Normal file
View File

@ -0,0 +1,31 @@
FROM docker.io/nvidia/cuda:13.0.3-cudnn-runtime-ubuntu22.04
ENV PYTHONUNBUFFERED=1
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update
RUN apt install -y software-properties-common
RUN add-apt-repository -y ppa:deadsnakes/ppa
RUN apt update
RUN apt install -y python3.12 python3.12-venv
RUN python3.12 -m ensurepip --upgrade
RUN python3.12 -m pip install --upgrade pip
WORKDIR /app
RUN apt install -y git libgl1 libglib2.0-0
RUN git clone https://github.com/comfyanonymous/ComfyUI.git .
RUN git clone https://github.com/Comfy-Org/ComfyUI-Manager ./custom_nodes/ComfyUI-Manager
RUN python3.12 -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu130
RUN python3.12 -m pip install --no-cache-dir -r requirements.txt
RUN python3.12 -m pip install -r ./custom_nodes/ComfyUI-Manager/requirements.txt
EXPOSE 8188
CMD ["python3.12", "main.py", "--listen", "0.0.0.0", "--enable-manager"]