C
File size: 673 Bytes
8e13700
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d239212
8e13700
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"]