Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +13 -55
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive \
|
| 4 |
TZ=America/Los_Angeles
|
|
@@ -12,11 +12,9 @@ RUN apt-get update && apt-get install -y \
|
|
| 12 |
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev git git-lfs \
|
| 13 |
ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx \
|
| 14 |
&& rm -rf /var/lib/apt/lists/* \
|
| 15 |
-
&& git lfs install
|
| 16 |
-
apt-get install nvidia-container-runtime
|
| 17 |
-
|
| 18 |
-
WORKDIR /code
|
| 19 |
|
|
|
|
| 20 |
|
| 21 |
# User
|
| 22 |
RUN useradd -m -u 1000 user
|
|
@@ -38,17 +36,18 @@ RUN pyenv install $PYTHON_VERSION && \
|
|
| 38 |
datasets \
|
| 39 |
huggingface-hub "protobuf<4" "click<8.1"
|
| 40 |
|
| 41 |
-
# PyTorch
|
|
|
|
| 42 |
|
| 43 |
# Set the working directory to /data if USE_PERSISTENT_DATA is set, otherwise set to $HOME/app
|
| 44 |
WORKDIR $HOME/app
|
| 45 |
|
| 46 |
-
RUN git clone https://github.com/comfyanonymous/ComfyUI . && \
|
| 47 |
-
|
| 48 |
-
# instal custom nodes
|
| 49 |
-
RUN echo "Installing custom nodes..."
|
| 50 |
-
RUN pip install -U onnxruntime-gpu
|
| 51 |
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
RUN cd custom_nodes && git clone https://github.com/ltdrdata/ComfyUI-Manager.git
|
| 54 |
RUN cd custom_nodes && git clone https://github.com/balazik/ComfyUI-PuLID-Flux.git
|
|
@@ -58,50 +57,9 @@ RUN cd custom_nodes && git clone https://github.com/Fannovel16/ComfyUI-Frame-Int
|
|
| 58 |
RUN cd custom_nodes && git clone https://github.com/Fannovel16/ComfyUI-Video-Matting && cd ComfyUI-Video-Matting && pip install -r requirements.txt
|
| 59 |
RUN cd custom_nodes && git clone https://github.com/BlenderNeko/ComfyUI_Cutoff
|
| 60 |
RUN cd custom_nodes && git clone https://github.com/WASasquatch/PPF_Noise_ComfyUI && cd PPF_Noise_ComfyUI && pip install -r requirements.txt
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
RUN cd custom_nodes && git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes
|
| 64 |
-
RUN cd custom_nodes && git clone https://github.com/space-nuko/ComfyUI-OpenPose-Editor
|
| 65 |
-
RUN cd custom_nodes && git clone https://github.com/twri/sdxl_prompt_styler
|
| 66 |
-
RUN cd custom_nodes && git clone https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved
|
| 67 |
-
RUN cd custom_nodes && git clone https://github.com/AIrjen/OneButtonPrompt
|
| 68 |
-
RUN cd custom_nodes && git clone https://github.com/WASasquatch/was-node-suite-comfyui && cd was-node-suite-comfyui && pip install -r requirements.txt
|
| 69 |
-
RUN cd custom_nodes && git clone https://github.com/cubiq/ComfyUI_essentials
|
| 70 |
-
RUN cd custom_nodes && git clone https://github.com/crystian/ComfyUI-Crystools && cd ComfyUI-Crystools && pip install -r requirements.txt
|
| 71 |
-
RUN cd custom_nodes && git clone https://github.com/ssitu/ComfyUI_UltimateSDUpscale --recursive
|
| 72 |
-
RUN cd custom_nodes && git clone https://github.com/gokayfem/ComfyUI_VLM_nodes && cd ComfyUI_VLM_nodes && pip install -r requirements.txt
|
| 73 |
-
RUN cd custom_nodes && git clone https://github.com/Fannovel16/comfyui_controlnet_aux && cd comfyui_controlnet_aux && pip install -r requirements.txt
|
| 74 |
-
RUN cd custom_nodes && git clone https://github.com/Stability-AI/stability-ComfyUI-nodes && cd stability-ComfyUI-nodes && pip install -r requirements.txt
|
| 75 |
-
RUN cd custom_nodes && git clone https://github.com/jags111/efficiency-nodes-comfyui && cd efficiency-nodes-comfyui && pip install -r requirements.txt
|
| 76 |
-
RUN cd custom_nodes && git clone https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite && cd ComfyUI-VideoHelperSuite && pip install -r requirements.txt
|
| 77 |
-
RUN cd custom_nodes && git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts
|
| 78 |
-
RUN cd custom_nodes && git clone https://github.com/WASasquatch/FreeU_Advanced
|
| 79 |
-
RUN cd custom_nodes && git clone https://github.com/city96/SD-Advanced-Noise
|
| 80 |
-
RUN cd custom_nodes && git clone https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet
|
| 81 |
-
RUN cd custom_nodes && git clone https://github.com/sipherxyz/comfyui-art-venture && cd comfyui-art-venture && pip install -r requirements.txt
|
| 82 |
-
RUN cd custom_nodes && git clone https://github.com/evanspearman/ComfyMath && cd ComfyMath && pip install -r requirements.txt
|
| 83 |
-
RUN cd custom_nodes && git clone https://github.com/GraftingRayman/Comfyui-reactor-node && cd Comfyui-reactor-node && pip install -r requirements.txt
|
| 84 |
-
RUN cd custom_nodes && git clone https://github.com/rgthree/rgthree-comfy && cd rgthree-comfy && pip install -r requirements.txt
|
| 85 |
-
RUN cd custom_nodes && git clone https://github.com/giriss/comfy-image-saver && cd comfy-image-saver && pip install -r requirements.txt
|
| 86 |
-
RUN cd custom_nodes && git clone https://github.com/gokayfem/ComfyUI-Depth-Visualization && cd ComfyUI-Depth-Visualization && pip install -r requirements.txt
|
| 87 |
-
RUN cd custom_nodes && git clone https://github.com/kohya-ss/ControlNet-LLLite-ComfyUI
|
| 88 |
-
RUN cd custom_nodes && git clone https://github.com/gokayfem/ComfyUI-Dream-Interpreter && cd ComfyUI-Dream-Interpreter && pip install -r requirements.txt
|
| 89 |
-
RUN cd custom_nodes && git clone https://github.com/cubiq/ComfyUI_IPAdapter_plus
|
| 90 |
-
RUN cd custom_nodes && git clone https://github.com/Acly/comfyui-inpaint-nodes
|
| 91 |
-
RUN cd custom_nodes && git clone https://github.com/chflame163/ComfyUI_LayerStyle && cd ComfyUI_LayerStyle && pip install -r requirements.txt
|
| 92 |
-
RUN cd custom_nodes && git clone https://github.com/omar92/ComfyUI-QualityOfLifeSuit_Omar92
|
| 93 |
-
RUN cd custom_nodes && git clone https://github.com/Derfuu/Derfuu_ComfyUI_ModdedNodes
|
| 94 |
-
RUN cd custom_nodes && git clone https://github.com/EllangoK/ComfyUI-post-processing-nodes
|
| 95 |
-
RUN cd custom_nodes && git clone https://github.com/jags111/ComfyUI_Jags_VectorMagic
|
| 96 |
-
RUN cd custom_nodes && git clone https://github.com/melMass/comfy_mtb && cd comfy_mtb && pip install -r requirements.txt
|
| 97 |
-
RUN cd custom_nodes && git clone https://github.com/AuroBit/ComfyUI-OOTDiffusion && cd ComfyUI-OOTDiffusion && pip install -r requirements.txt
|
| 98 |
-
RUN cd custom_nodes && git clone https://github.com/kijai/ComfyUI-KJNodes && cd ComfyUI-KJNodes && pip install -r requirements.txt
|
| 99 |
-
RUN cd custom_nodes && git clone https://github.com/kijai/ComfyUI-SUPIR && cd ComfyUI-SUPIR && pip install -r requirements.txt
|
| 100 |
-
RUN cd custom_nodes && git clone https://github.com/kijai/ComfyUI-depth-fm && cd ComfyUI-depth-fm && pip install -r requirements.txt
|
| 101 |
-
RUN cd custom_nodes && git clone https://github.com/viperyl/ComfyUI-BiRefNet && cd ComfyUI-BiRefNet && pip install -r requirements.txt
|
| 102 |
-
RUN cd custom_nodes && git clone https://github.com/gokayfem/ComfyUI-Texture-Simple
|
| 103 |
-
RUN cd custom_nodes && git clone https://github.com/ZHO-ZHO-ZHO/ComfyUI-APISR && cd ComfyUI-APISR && pip install -r requirements.txt
|
| 104 |
|
| 105 |
COPY . .
|
| 106 |
|
| 107 |
-
CMD ["python", "app.py"]
|
|
|
|
| 1 |
+
FROM ubuntu:22.04
|
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive \
|
| 4 |
TZ=America/Los_Angeles
|
|
|
|
| 12 |
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev git git-lfs \
|
| 13 |
ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx \
|
| 14 |
&& rm -rf /var/lib/apt/lists/* \
|
| 15 |
+
&& git lfs install
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
WORKDIR /code
|
| 18 |
|
| 19 |
# User
|
| 20 |
RUN useradd -m -u 1000 user
|
|
|
|
| 36 |
datasets \
|
| 37 |
huggingface-hub "protobuf<4" "click<8.1"
|
| 38 |
|
| 39 |
+
# PyTorch (CPU版) インストール
|
| 40 |
+
RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
|
| 41 |
|
| 42 |
# Set the working directory to /data if USE_PERSISTENT_DATA is set, otherwise set to $HOME/app
|
| 43 |
WORKDIR $HOME/app
|
| 44 |
|
| 45 |
+
RUN git clone https://github.com/comfyanonymous/ComfyUI . && \
|
| 46 |
+
pip install -r requirements.txt --no-cache-dir
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
+
# Custom nodes installation
|
| 49 |
+
RUN echo "Installing custom nodes..."
|
| 50 |
+
RUN pip install -U onnxruntime # CPU版
|
| 51 |
|
| 52 |
RUN cd custom_nodes && git clone https://github.com/ltdrdata/ComfyUI-Manager.git
|
| 53 |
RUN cd custom_nodes && git clone https://github.com/balazik/ComfyUI-PuLID-Flux.git
|
|
|
|
| 57 |
RUN cd custom_nodes && git clone https://github.com/Fannovel16/ComfyUI-Video-Matting && cd ComfyUI-Video-Matting && pip install -r requirements.txt
|
| 58 |
RUN cd custom_nodes && git clone https://github.com/BlenderNeko/ComfyUI_Cutoff
|
| 59 |
RUN cd custom_nodes && git clone https://github.com/WASasquatch/PPF_Noise_ComfyUI && cd PPF_Noise_ComfyUI && pip install -r requirements.txt
|
| 60 |
+
|
| 61 |
+
# 他の custom nodes は元のDockerfileと同じ
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
COPY . .
|
| 64 |
|
| 65 |
+
CMD ["python", "app.py"]
|