SD-WebUI17z / Dockerfile
Xenos14's picture
Update Dockerfile
85339e4 verified
raw
history blame
10.9 kB
FROM kalilinux/kali-rolling
RUN apt update && apt upgrade -y
RUN apt install git -y
RUN git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
RUN useradd -m toor
RUN apt install python3 -y
RUN apt-get install libgoogle-perftools-dev -y
RUN chown -R toor stable-diffusion-webui
RUN apt install python3.11-venv -y
USER toor
RUN stable-diffusion-webui/webui.sh
RUN stable-diffusion-webui/webui.sh --skip-torch-cuda-test
USER toor
RUN stable-diffusion-webui/webui.sh --skip-torch-cuda-test --no-half
USER root
RUN apt update && apt install ffmpeg libsm6 libxext6 -y
#USER toor
#ENTRYPOINT stable-diffusion-webui/webui.sh --skip-torch-cuda-test --no-half --listen
USER root
RUN apt install wget -y
USER root
#FROM public.ecr.aws/lambda/python:3.9 AS model
#RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
#RUN apt install git-lfs -y
#RUN git lfs install
RUN apt-get install git-lfs
USER toor
#checkpoints
RUN wget https://huggingface.co/Xenos14/Checkpoints/resolve/main/XenoGASM-v5.safetensors --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/Stable-diffusion/XenoGASM-v5.safetensors
RUN wget https://huggingface.co/Xenos14/Checkpoints/resolve/main/Kitsch-In-Sync-v2.safetensors --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/Stable-diffusion/Kitsch-In-Sync-v2.safetensors
RUN wget https://huggingface.co/Xenos14/XenoREALITY/resolve/main/XenoGRAPH/XenoGRAPH.safetensors --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/Stable-diffusion/XenoGRAPH.safetensors
#RUN wget https://huggingface.co/Xenos14/XenoREALITY/resolve/main/LCM/XenoBABES_LCM.safetensors --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/Stable-diffusion/XenoBABES_LCM.safetensors
RUN wget https://huggingface.co/Xenos14/XenoREALITY/resolve/main/LCM/XenoGASM_LCM-v5.safetensors --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/Stable-diffusion/XenoGASM_LCM-v5.safetensors
#RUN wget https://huggingface.co/Xenos14/TestBed/resolve/main/LCM/Kitsch-In-Synch-LCM-v2.safetensors --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/Stable-diffusion/Kitsch-In-Synch-LCM-v2.safetensors
RUN wget https://huggingface.co/Xenos14/XenoREALITY/resolve/main/XenoVERSE/XenoVERSE-V2.safetensors --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/Stable-diffusion/XenoVERSE-V2.safetensors
RUN wget https://huggingface.co/Xenos14/XenoREALITY/resolve/main/XenTAI_v1.safetensors --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/Stable-diffusion/XenTAI_v1.safetensors
RUN wget https://huggingface.co/Xenos14/TestBed/resolve/main/2024-XTC/XenoXTC-vCMX.safetensors --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/Stable-diffusion/XenoXTC-vCMX.safetensors
RUN wget https://huggingface.co/Xenos14/Checkpoints/resolve/main/ui-config.json --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/ui-config.json
RUN wget https://huggingface.co/Xenos14/Checkpoints/resolve/main/config.json --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/config.json
#ControlNets
#RUN mkdir /stable-diffusion-webui/stable-diffusion-webui/models/ControlNet/
#RUN wget https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_canny_fp16.safetensors --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/ControlNet/control_v11p_sd15_canny_fp16.safetensors
#RUN wget https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_inpaint_fp16.safetensors --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/ControlNet/control_v11p_sd15_inpaint_fp16.safetensors
#RUN wget https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_lineart_fp16.safetensors --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/ControlNet/control_v11p_sd15_lineart_fp16.safetensors
#RUN wget https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_openpose_fp16.safetensors --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/ControlNet/control_v11p_sd15_openpose_fp16.safetensors
#RUN wget https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15s2_lineart_anime_fp16.safetensors --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/ControlNet/control_v11p_sd15s2_lineart_anime_fp16.safetensors
#VAE
RUN wget https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.ckpt --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/VAE/vae-ft-mse-840000-ema-pruned.ckpt
#extensions
RUN git clone https://github.com/Mikubill/sd-webui-controlnet.git /stable-diffusion-webui/stable-diffusion-webui/extensions/controlnet
RUN git clone https://huggingface.co/lllyasviel/ControlNet-v1-1 /stable-diffusion-webui/stable-diffusion-webui/extensions/controlnet/models/tree
RUN mv -f /stable-diffusion-webui/stable-diffusion-webui/extensions/controlnet/models/tree/* /stable-diffusion-webui/stable-diffusion-webui/extensions/controlnet/models
RUN git clone https://github.com/etherealxx/batchlinks-webui /stable-diffusion-webui/stable-diffusion-webui/extensions/batchlinks-webui
RUN git clone https://github.com/zanllp/sd-webui-infinite-image-browsing /stable-diffusion-webui/stable-diffusion-webui/extensions/sd-webui-infinite-image-browsing
RUN git clone https://github.com/Bing-su/adetailer /stable-diffusion-webui/stable-diffusion-webui/extensions/adetailer
RUN git clone https://github.com/hako-mikan/sd-webui-supermerger /stable-diffusion-webui/stable-diffusion-webui/extensions/sd-webui-supermerger
RUN git clone https://github.com/aka7774/sd_filer /stable-diffusion-webui/stable-diffusion-webui/extensions/sd_filer
RUN git clone https://github.com/arenasys/stable-diffusion-webui-model-toolkit /stable-diffusion-webui/stable-diffusion-webui/extensions/stable-diffusion-webui-model-toolkit
RUN git clone https://github.com/civitai/sd_civitai_extension /stable-diffusion-webui/stable-diffusion-webui/extensions/sd_civitai_extension
RUN git clone https://github.com/adieyal/sd-dynamic-prompts /stable-diffusion-webui/stable-diffusion-webui/extensions/sd-dynamic-prompts
RUN git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /stable-diffusion-webui/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
RUN git clone https://github.com/BlafKing/sd-civitai-browser-plus /stable-diffusion-webui/stable-diffusion-webui/extensions/sd-civitai-browser-plus
RUN git clone https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git /stable-diffusion-webui/stable-diffusion-webui/extensions/a1111-sd-webui-tagcomplete
RUN git clone https://github.com/continue-revolution/sd-webui-animatediff /stable-diffusion-webui/stable-diffusion-webui/extensions/sd-webui-animatediff
RUN git clone https://github.com/klimaleksus/stable-diffusion-webui-embedding-merge /stable-diffusion-webui/stable-diffusion-webui/extensions/stable-diffusion-webui-embedding-merge
RUN git clone https://github.com/kohya-ss/sd-webui-additional-networks /stable-diffusion-webui/stable-diffusion-webui/extensions/sd-webui-additional-networks
RUN git clone https://github.com/ljleb/sd-webui-freeu /stable-diffusion-webui/stable-diffusion-webui/extensions/sd-webui-freeu
RUN git clone https://github.com/some9000/StylePile /stable-diffusion-webui/stable-diffusion-webui/extensions/StylePile
RUN git clone https://github.com/zixaphir/Stable-Diffusion-Webui-Civitai-Helper /stable-diffusion-webui/stable-diffusion-webui/extensions/Stable-Diffusion-Webui-Civitai-Helper
#lora
#RUN mkdir /stable-diffusion-webui/stable-diffusion-webui/models/Lora/
#RUN wget https://huggingface.co/Xenos14/Loras/resolve/main/Concepts/StareWare.safetensors --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/Lora/StareWare.safetensors
#RUN wget https://huggingface.co/Xenos14/Loras/resolve/main/Tools/LCM_LoRA_Weights_SD15.safetensors --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/Lora/LCM_LoRA_Weights_SD15.safetensors
#RUN wget https://huggingface.co/Xenos14/Loras/resolve/main/Tools/LORA-XenoDetailer-v3.safetensors --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/Lora/LORA-XenoDetailer-v3.safetensors
#cards
RUN mkdir /stable-diffusion-webui/stable-diffusion-webui/extensions/sd-dynamic-prompts/wildcards/
RUN git clone https://huggingface.co/Xenos14/wildcards /stable-diffusion-webui/stable-diffusion-webui/extensions/sd-dynamic-prompts/wildcards/Xenos
#RUN mv -f /stable-diffusion-webui/stable-diffusion-webui/extensions/sd-dynamic-prompts/wildcards/Xenos/billions_of_all_in_one.yaml //stable-diffusion-webui/stable-diffusion-webui/extensions/sd-dynamic-prompts/wildcards/
RUN git clone https://github.com/vorstcavry/embeddings /stable-diffusion-webui/stable-diffusion-webui/embeddings/negative
#RUN git clone https://huggingface.co/Xenos14/embeddings /stable-diffusion-webui/stable-diffusion-webui/embeddings/Xenos
RUN mkdir /stable-diffusion-webui/stable-diffusion-webui/models/Lora/
#RUN mkdir /stable-diffusion-webui/xtemp/
#RUN git clone https://huggingface.co/Xenos14/Loras /stable-diffusion-webui/xtemp/
#RUN mv -f /stable-diffusion-webui/xtemp/ /stable-diffusion-webui/stable-diffusion-webui/models/Lora/
RUN git clone https://huggingface.co/Xenos14/Loras /stable-diffusion-webui/stable-diffusion-webui/models/Lora/Xenos/
#RUN mkdir /stable-diffusion-webui/xtemp/
RUN git clone https://huggingface.co/Xenos14/embeddings /stable-diffusion-webui/stable-diffusion-webui/embeddings/Xenos/
#RUN mv -f /stable-diffusion-webui/xtemp/Xenos/ /stable-diffusion-webui/stable-diffusion-webui/embeddings/
#RUN wget https://civitai.com/api/download/mode#ls/27495 --content-disposition -O /stable-diffusion-webui/models/Lora/tiese.safetensors
#RUN wget https://civitai.com/api/download/models/11814 --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/models/Stable-diffusion/abyssorangemix3AOM3_aom3.safetensors
#RUN wget https://civitai.com/api/download/models/122143 --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/extensions/controlnet/models/qrCodeMonster_v20.safetensors
#RUN wget https://civitai.com/api/download/models/122143?type=Config --content-disposition -O /stable-diffusion-webui/stable-diffusion-webui/extensions/controlnet/models/qrCodeMonster_v20.yaml
ENTRYPOINT /stable-diffusion-webui/webui.sh --disable-safe-unpickle --skip-torch-cuda-test --no-half --listen --enable-insecure-extension-access