| FROM kalilinux/kali-rolling | |
| RUN apt update && apt upgrade -y | |
| RUN apt install wget git python3 python3-venv libgl1 libglib2.0-0 -y | |
| RUN git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git | |
| RUN chmod +x /stable-diffusion-webui/webui.sh | |
| RUN useradd -m toor | |
| RUN chown toor:toor -R /stable-diffusion-webui/ | |
| RUN apt install git-lfs | |
| USER toor | |
| RUN cd /stable-diffusion-webui/extensions && git clone https://github.com/Mikubill/sd-webui-controlnet.git | |
| RUN mkdir /stable-diffusion-webui/models/ControlNet | |
| RUN cd /stable-diffusion-webui/models/ControlNet && git clone https://huggingface.co/lllyasviel/ControlNet-v1-1 | |
| RUN cd /stable-diffusion-webui/extensions && git clone https://github.com/Coyote-A/ultimate-upscale-for-automatic1111 | |
| RUN cd /stable-diffusion-webui/extensions && git clone https://github.com/zanllp/sd-webui-infinite-image-browsing | |
| ENTRYPOINT /stable-diffusion-webui/webui.sh --skip-torch-cuda-test --no-half --listen |