-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.runpod
More file actions
46 lines (36 loc) · 1.25 KB
/
Copy pathDockerfile.runpod
File metadata and controls
46 lines (36 loc) · 1.25 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
# RunPod Serverless ComfyUI with Wan Animate
FROM runpod/pytorch:2.1.0-py3.10-cuda11.8.0-devel-ubuntu22.04
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
wget \
ffmpeg \
libgl1-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /comfyui
# Clone ComfyUI
RUN git clone https://github.com/comfyanonymous/ComfyUI.git . && \
pip install -r requirements.txt
# Install ComfyUI Manager
RUN cd custom_nodes && \
git clone https://github.com/ltdrdata/ComfyUI-Manager.git
# Install Video Helper Suite (for VHS_LoadVideo)
RUN cd custom_nodes && \
git clone https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite.git && \
cd ComfyUI-VideoHelperSuite && \
pip install -r requirements.txt
# Install Wan Animate nodes (you'll need to add the correct repo)
# RUN cd custom_nodes && \
# git clone <WAN_ANIMATE_REPO_URL> && \
# cd <WAN_ANIMATE_DIR> && \
# pip install -r requirements.txt
# Download required models
RUN mkdir -p models/checkpoints models/vae models/clip_vision models/unet
# Create input/output directories
RUN mkdir -p input output temp
# Copy handler for RunPod serverless
COPY handler.py /comfyui/
# Set entrypoint
CMD ["python", "handler.py"]