-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
70 lines (57 loc) · 3.36 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# FROM nvidia/cuda:12.4.1-cudnn-runtime-ubuntu22.04
# WORKDIR /ComfyUI
# RUN apt update && apt install -y \
# python3 \
# python3-pip \
# git && \
# apt clean
# RUN cd / && git clone https://github.com/ComfyUI/ComfyUI.git ComfyUI && cd /ComfyUI && \
# git clone https://github.com/yolain/ComfyUI-Easy-Use custom_nodes/ComfyUI-Easy-Use && \
# git clone https://github.com/mrhan1993/ComfyUI-Fooocus custom_nodes/ComfyUI-Fooocus && \
# git clone https://github.com/rgthree/rgthree-comfy custom_nodes/rgthree-comfy && \
# git clone https://github.com/theUpsider/ComfyUI-Logic custom_nodes/ComfyUI-Logic && \
# git clone https://github.com/miaoshouai/ComfyUI-Miaoshouai-Tagger custom_nodes/ComfyUI-Miaoshouai-Tagger && \
# git clone https://github.com/chrisgoringe/cg-use-everywhere custom_nodes/cg-use-everywhere && \
# git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack custom_nodes/ComfyUI-Impact-Pack && \
# git clone https://github.com/crystian/ComfyUI-Crystools custom_nodes/ComfyUI-Crystools && \
# pip install -r requirements.txt && \
# pip install gradio && \
# pip install -r custom_nodes/ComfyUI-Easy-Use/requirements.txt && \
# pip install -r custom_nodes/ComfyUI-Fooocus/requirements.txt && \
# pip install -r custom_nodes/rgthree-comfy/requirements.txt && \
# pip install -r custom_nodes/ComfyUI-Logic/requirements.txt && \
# pip install -r custom_nodes/ComfyUI-Miaoshouai-Tagger/requirements.txt && \
# pip install -r custom_nodes/cg-use-everywhere/requirements.txt && \
# pip install -r custom_nodes/ComfyUI-Impact-Pack/requirements.txt && \
# pip install -r custom_nodes/ComfyUI-Crystools/requirements.txt && \
# pip cache purge
# EXPOSE 8188
# CMD ["python3", "main.py", "--listen"]
FROM nvidia/cuda:12.4.1-cudnn-runtime-ubuntu22.04
WORKDIR /ComfyUI
RUN apt update && apt install -y \
python3 \
python3-pip \
git && \
apt clean
RUN cd / && git clone https://github.com/comfyanonymous/ComfyUI ComfyUI && cd /ComfyUI && \
git clone https://github.com/yolain/ComfyUI-Easy-Use custom_nodes/ComfyUI-Easy-Use && \
git clone https://github.com/mrhan1993/ComfyUI-Fooocus custom_nodes/ComfyUI-Fooocus && \
git clone https://github.com/rgthree/rgthree-comfy custom_nodes/rgthree-comfy && \
git clone https://github.com/theUpsider/ComfyUI-Logic custom_nodes/ComfyUI-Logic && \
git clone https://github.com/miaoshouai/ComfyUI-Miaoshouai-Tagger custom_nodes/ComfyUI-Miaoshouai-Tagger && \
git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack custom_nodes/ComfyUI-Impact-Pack && \
git clone https://github.com/crystian/ComfyUI-Crystools custom_nodes/ComfyUI-Crystools && \
pip config set global.index-url https://mirror.nju.edu.cn/pypi/web/simple && \
pip install -r requirements.txt && \
pip install gradio && \
pip install -r custom_nodes/ComfyUI-Easy-Use/requirements.txt && \
pip install -r custom_nodes/ComfyUI-Fooocus/requirements.txt && \
pip install -r custom_nodes/rgthree-comfy/requirements.txt && \
pip install -r custom_nodes/ComfyUI-Miaoshouai-Tagger/requirements.txt && \
pip install -r custom_nodes/ComfyUI-Impact-Pack/requirements.txt && \
pip install -r custom_nodes/ComfyUI-Crystools/requirements.txt && \
pip cache purge
EXPOSE 8188 8000 8189/udp
ENTRYPOINT [ "/ComfyUI/entrypoint.sh" ]
CMD ["python3", "main.py", "--listen"]