Compare commits
No commits in common. "2236b837220b6bb79d1437fa00c1ae846f187172" and "94e5a71e5502db2effe94be2315603334b423cd8" have entirely different histories.
2236b83722
...
94e5a71e55
40
Dockerfile
40
Dockerfile
@ -1,40 +0,0 @@
|
|||||||
FROM nvidia/cuda:12.6.1-cudnn-runtime-ubuntu20.04
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
git \
|
|
||||||
python3 \
|
|
||||||
python3-pip \
|
|
||||||
build-essential \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
|
|
||||||
RUN git clone https://github.com/comfyanonymous/ComfyUI.git /ComfyUI
|
|
||||||
|
|
||||||
WORKDIR /ComfyUI
|
|
||||||
|
|
||||||
VOLUME [ \
|
|
||||||
"/ComfyUI/models/diffusion_models", \
|
|
||||||
"/ComfyUI/models/controlnet", \
|
|
||||||
"/ComfyUI/models/upscale_models", \
|
|
||||||
"/ComfyUI/models/photomaker", \
|
|
||||||
"/ComfyUI/models/embeddings", \
|
|
||||||
"/ComfyUI/models/checkpoints", \
|
|
||||||
"/ComfyUI/models/style_models", \
|
|
||||||
"/ComfyUI/models/clip", \
|
|
||||||
"/ComfyUI/models/hypernetworks", \
|
|
||||||
"/ComfyUI/models/diffusers", \
|
|
||||||
"/ComfyUI/models/vae", \
|
|
||||||
"/ComfyUI/models/gligen", \
|
|
||||||
"/ComfyUI/models/unet", \
|
|
||||||
"/ComfyUI/models/clip_vision", \
|
|
||||||
"/ComfyUI/models/vae_approx", \
|
|
||||||
"/ComfyUI/models/loras" \
|
|
||||||
]
|
|
||||||
|
|
||||||
RUN pip3 install --upgrade pip \
|
|
||||||
&& pip3 install -r requirements.txt
|
|
||||||
|
|
||||||
ENV PATH /usr/local/cuda/bin:${PATH}
|
|
||||||
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64:${LD_LIBRARY_PATH}
|
|
||||||
|
|
||||||
CMD ["python3", "/ComfyUI/main.py", "--listen"]
|
|
@ -1,6 +1,3 @@
|
|||||||
# ComfyUI-docker
|
# ComfyUI-docker
|
||||||
|
|
||||||
Dockerfile for ComfyUI
|
Dockerfile for ComfyUI
|
||||||
|
|
||||||
No automatic downloads of terabytes of models, no manager, no custom nodes, no nothing. It's just comfy.
|
|
||||||
Only works on nvidia (container uses cuda 12.6.1), for the sake of simplicity and because i have no other gpus.
|
|
@ -1,43 +0,0 @@
|
|||||||
services:
|
|
||||||
comfy:
|
|
||||||
image: comfy_simple
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
ports:
|
|
||||||
- "8188:8188"
|
|
||||||
volumes:
|
|
||||||
- ./models/diffusion_models:/ComfyUI/models/diffusion_models
|
|
||||||
- ./models/controlnet:/ComfyUI/models/controlnet
|
|
||||||
- ./models/upscale_models:/ComfyUI/models/upscale_models
|
|
||||||
- ./models/photomaker:/ComfyUI/models/photomaker
|
|
||||||
- ./models/embeddings:/ComfyUI/models/embeddings
|
|
||||||
- ./models/checkpoints:/ComfyUI/models/checkpoints
|
|
||||||
- ./models/style_models:/ComfyUI/models/style_models
|
|
||||||
- ./models/clip:/ComfyUI/models/clip
|
|
||||||
- ./models/hypernetworks:/ComfyUI/models/hypernetworks
|
|
||||||
- ./models/diffusers:/ComfyUI/models/diffusers
|
|
||||||
- ./models/vae:/ComfyUI/models/vae
|
|
||||||
- ./models/gligen:/ComfyUI/models/gligen
|
|
||||||
- ./models/unet:/ComfyUI/models/unet
|
|
||||||
- ./models/clip_vision:/ComfyUI/models/clip_vision
|
|
||||||
- ./models/vae_approx:/ComfyUI/models/vae_approx
|
|
||||||
- ./models/loras:/ComfyUI/models/loras
|
|
||||||
|
|
||||||
- ./output:/ComfyUI/output
|
|
||||||
- ./input:/ComfyUI/input
|
|
||||||
|
|
||||||
environment:
|
|
||||||
- NVIDIA_VISIBLE_DEVICES=all
|
|
||||||
deploy:
|
|
||||||
resources:
|
|
||||||
reservations:
|
|
||||||
devices:
|
|
||||||
- driver: nvidia
|
|
||||||
device_ids: ['0']
|
|
||||||
capabilities: [gpu]
|
|
||||||
command: ["python3", "/ComfyUI/main.py", "--listen"]
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
app:
|
|
||||||
driver: local
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user