forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (37 loc) · 1.64 KB
/
Dockerfile
File metadata and controls
47 lines (37 loc) · 1.64 KB
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
#---
# name: comfyui
# group: diffusion
# depends: [pytorch, torchvision, torchaudio, opencv, bitsandbytes, transformers, xformers, torchao, diffusers, huggingface_hub]
# requires: '>=35.0.0'
# docs: docs.md
#---
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
WORKDIR /opt
# Clone the repository:
RUN git clone https://github.com/comfyanonymous/ComfyUI.git && \
cd ComfyUI && \
pip3 install -r requirements.txt
RUN cd /opt/ComfyUI/custom_nodes && \
git clone --recursive https://github.com/ltdrdata/ComfyUI-Manager.git && \
git clone --recursive https://github.com/discus0434/comfyui-flux-accelerator.git && \
git clone --recursive https://github.com/pydn/ComfyUI-to-Python-Extension.git && \
git clone --recursive https://github.com/johnnynunez/ComfyUI-Crystools.git
RUN pip3 install -U -r /opt/ComfyUI/custom_nodes/ComfyUI-Manager/requirements.txt && \
pip3 install -U -r /opt/ComfyUI/custom_nodes/comfyui-flux-accelerator/requirements.txt && \
pip3 install -U -r /opt/ComfyUI/custom_nodes/ComfyUI-to-Python-Extension/requirements.txt
RUN cd /opt/ComfyUI/custom_nodes/comfyui-flux-accelerator/scripts && \
if [ -f download_taef1.sh ]; then \
chmod +x download_taef1.sh && bash download_taef1.sh; \
else \
echo "download_taef1.sh not found"; \
fi && \
cd /opt/ComfyUI/
WORKDIR /opt/ComfyUI/
RUN pip3 install -U deepdiff xformers onnxruntime-gpu triton lm_eval vhacdx manifold openexr
RUN pip3 install -U diffusers flash-attn sageattention torchao
COPY workflow /opt/ComfyUI/workflow
COPY extra /opt/ComfyUI/extra
EXPOSE 8188
RUN sh /opt/ComfyUI/extra/init.sh
CMD python3 main.py --listen 0.0.0.0 --port ${PORT:-8188}