Spaces:
Runtime error
Runtime error
| FROM ubuntu:22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive \ | |
| TZ=America/Los_Angeles | |
| ARG USE_PERSISTENT_DATA | |
| RUN apt-get update && apt-get install -y \ | |
| git libgl1 libglib2.0-0 \ | |
| make build-essential libssl-dev zlib1g-dev \ | |
| libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \ | |
| libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev git git-lfs \ | |
| ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && git lfs install | |
| WORKDIR /code | |
| # User | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| # Pyenv | |
| RUN curl https://pyenv.run | bash | |
| ENV PATH=$HOME/.pyenv/shims:$HOME/.pyenv/bin:$PATH | |
| ARG PYTHON_VERSION=3.10.12 | |
| # Python | |
| RUN pyenv install $PYTHON_VERSION && \ | |
| pyenv global $PYTHON_VERSION && \ | |
| pyenv rehash && \ | |
| pip install --no-cache-dir --upgrade pip setuptools wheel && \ | |
| pip install --no-cache-dir \ | |
| datasets \ | |
| huggingface-hub "protobuf<4" "click<8.1" | |
| # PyTorch (CPU版) インストール | |
| RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu | |
| # Set the working directory to /data if USE_PERSISTENT_DATA is set, otherwise set to $HOME/app | |
| WORKDIR $HOME/app | |
| RUN git clone https://github.com/comfyanonymous/ComfyUI . && \ | |
| pip install -r requirements.txt --no-cache-dir | |
| # Custom nodes installation | |
| RUN echo "Installing custom nodes..." | |
| RUN pip install -U onnxruntime # CPU版 | |
| RUN cd custom_nodes && git clone https://github.com/ltdrdata/ComfyUI-Manager.git | |
| RUN cd custom_nodes && git clone https://github.com/balazik/ComfyUI-PuLID-Flux.git | |
| RUN cd custom_nodes && git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack && cd ComfyUI-Impact-Pack && python install.py | |
| RUN cd custom_nodes && git clone https://github.com/ltdrdata/ComfyUI-Inspire-Pack && cd ComfyUI-Inspire-Pack && pip install -r requirements.txt | |
| RUN cd custom_nodes && git clone https://github.com/Fannovel16/ComfyUI-Frame-Interpolation && cd ComfyUI-Frame-Interpolation && python install.py | |
| RUN cd custom_nodes && git clone https://github.com/Fannovel16/ComfyUI-Video-Matting && cd ComfyUI-Video-Matting && pip install -r requirements.txt | |
| RUN cd custom_nodes && git clone https://github.com/BlenderNeko/ComfyUI_Cutoff | |
| RUN cd custom_nodes && git clone https://github.com/WASasquatch/PPF_Noise_ComfyUI && cd PPF_Noise_ComfyUI && pip install -r requirements.txt | |
| # 他の custom nodes は元のDockerfileと同じ | |
| COPY . . | |
| CMD ["python", "app.py"] | |