CoolFace
Apppublic

bign/webui-docker

sourceHugging Faceupdated 4y agoView on Hugging Face
0likes
Dockerfile.Private.A10G45 linesDownload Raw Back to root
1# Dockerfile Private A10G2 3# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/11.7.1/ubuntu2204/devel/cudnn8/Dockerfile4FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.045ENV DEBIAN_FRONTEND noninteractive6 7WORKDIR /content8 9RUN apt-get update -y && apt-get upgrade -y && apt-get install -y libgl1 libglib2.0-0 wget git git-lfs python3-pip python-is-python3 && pip3 install --upgrade pip10RUN pip install https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.16/xformers-0.0.16+814314d.d20230119.A10G-cp310-cp310-linux_x86_64.whl11RUN pip install --pre triton12RUN pip install numexpr13 14RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui15RUN sed -i -e '''/prepare_environment()/a\    os.system\(f\"""sed -i -e ''\"s/dict()))/dict())).cuda()/g\"'' /content/stable-diffusion-webui/repositories/stable-diffusion-stability-ai/ldm/util.py""")''' /content/stable-diffusion-webui/launch.py16RUN sed -i -e 's/    start()/    #start()/g' /content/stable-diffusion-webui/launch.py17RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test18 19# ----------------------------Delete this block if you don't want to see the extra header----------------------------20ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py21RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py22ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py23RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py24# -------------------------------------------------------------------------------------------------------------------25 26ADD https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py27RUN git clone https://github.com/camenduru/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui28RUN git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser29RUN git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface30RUN git clone https://github.com/Vetchems/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser31 32COPY config.json /content/config.json33COPY ui-config.json /content/ui-config.json34 35ADD https://huggingface.co/andite/anything-v4.0/resolve/main/anything-v4.5-pruned.ckpt /content/stable-diffusion-webui/models/Stable-diffusion/anything-v4.5-pruned.ckpt36ADD https://huggingface.co/andite/anything-v4.0/resolve/main/anything-v4.0.vae.pt /content/stable-diffusion-webui/models/Stable-diffusion/anything-v4.5-pruned.vae.pt37 38RUN adduser --disabled-password --gecos '' user39RUN chown -R user:user /content40RUN chmod -R 777 /content41USER user42 43EXPOSE 786044 45CMD cd /content/stable-diffusion-webui && python webui.py --xformers --listen --disable-console-progressbars --ui-config-file /content/ui-config.json --ui-settings-file /content/config.json