Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +27 -0
Dockerfile
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM runpod/pytorch:2.2.1-py3.10-cuda12.1.1-devel-ubuntu22.04
|
2 |
+
WORKDIR /content
|
3 |
+
ENV PATH="/home/camenduru/.local/bin:${PATH}"
|
4 |
+
|
5 |
+
RUN adduser --disabled-password --gecos '' camenduru && \
|
6 |
+
adduser camenduru sudo && \
|
7 |
+
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
|
8 |
+
chown -R camenduru:camenduru /content && \
|
9 |
+
chmod -R 777 /content && \
|
10 |
+
chown -R camenduru:camenduru /home && \
|
11 |
+
chmod -R 777 /home && \
|
12 |
+
apt update -y && add-apt-repository -y ppa:git-core/ppa && apt update -y && apt install -y aria2 git git-lfs unzip ffmpeg
|
13 |
+
|
14 |
+
USER camenduru
|
15 |
+
|
16 |
+
RUN pip install -q opencv-python imageio imageio-ffmpeg ffmpeg-python av runpod \
|
17 |
+
torchsde==0.2.6 einops==0.8.0 && \
|
18 |
+
git clone https://github.com/comfyanonymous/ComfyUI /content/ComfyUI && \
|
19 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FLUX.1-dev/resolve/main/flux1-dev-fp8.safetensors -d /content/ComfyUI/models/unet -o flux1-dev-fp8.safetensors && \
|
20 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FLUX.1-dev/resolve/main/clip_l.safetensors -d /content/ComfyUI/models/clip -o clip_l.safetensors && \
|
21 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FLUX.1-dev/resolve/main/t5xxl_fp16.safetensors -d /content/ComfyUI/models/clip -o t5xxl_fp16.safetensors && \
|
22 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FLUX.1-dev/resolve/main/ae.sft -d /content/ComfyUI/models/vae -o ae.safetensors && \
|
23 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/jasperai/Flux.1-dev-Controlnet-Upscaler/resolve/main/diffusion_pytorch_model.safetensors -d /content/ComfyUI/models/controlnet -o controlnet.safetensors
|
24 |
+
|
25 |
+
COPY ./worker_runpod.py /content/ComfyUI/worker_runpod.py
|
26 |
+
WORKDIR /content/ComfyUI
|
27 |
+
CMD python worker_runpod.py
|