Create Dockerfile
Browse files- Dockerfile +25 -0
Dockerfile
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM cnstark/pytorch:2.0.1-py3.10.11-ubuntu22.04
|
2 |
+
|
3 |
+
RUN apt-get update && apt-get install -y git
|
4 |
+
|
5 |
+
#RUN apt-get install -y sudo
|
6 |
+
RUN useradd -rm -d /home/hf -s /bin/bash -g root -G sudo -u 1001 hf
|
7 |
+
USER hf
|
8 |
+
|
9 |
+
ENV TRANSFORMERS_CACHE /tmp
|
10 |
+
ENV HF_HOME /tmp
|
11 |
+
|
12 |
+
WORKDIR /home/hf
|
13 |
+
|
14 |
+
RUN mkdir /tmp/comfy_out
|
15 |
+
|
16 |
+
RUN git clone https://github.com/comfyanonymous/ComfyUI .
|
17 |
+
RUN pip install -r requirements.txt
|
18 |
+
|
19 |
+
RUN wget -c https://huggingface.co/stabilityai/sdxl-turbo/resolve/main/sd_xl_turbo_1.0_fp16.safetensors -P ./models/checkpoints/
|
20 |
+
RUN wget -c https://huggingface.co/openskyml/lcm-lora-sdxl-turbo/resolve/main/lcm-lora-sdxl-turbo.safetensors -P ./models/loras/
|
21 |
+
RUN wget -c https://huggingface.co/kataragi/SDXL-turbo-LoRA/resolve/main/sd_xl_turbo_lora_rank64.safetensors -P ./models/loras/
|
22 |
+
RUN wget -c https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.safetensors -P ./models/vae/
|
23 |
+
RUN wget -c https://huggingface.co/sberbank-ai/Real-ESRGAN/resolve/main/RealESRGAN_x2.pth -P ./models/upscale_models/
|
24 |
+
|
25 |
+
CMD ["python", "main.py", "--listen", "0.0.0.0", "--port", "7860", "--output-directory", "/tmp/comfy_out/"]
|