Upload 9 files
Browse files- Dockerfile.Build.Xformers +17 -0
- Dockerfile.Private.A10G +42 -0
- Dockerfile.Private.Nightly.A10G +42 -0
- Dockerfile.Private.Nightly.T4 +42 -0
- Dockerfile.Private.T4 +42 -0
- Dockerfile.Public.A10G +46 -0
- Dockerfile.Public.Nightly.A10G +46 -0
- Dockerfile.Public.Nightly.T4 +46 -0
- Dockerfile.Public.T4 +46 -0
Dockerfile.Build.Xformers
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/11.7.1/ubuntu2204/devel/cudnn8/Dockerfile
|
2 |
+
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
|
3 |
+
ENV DEBIAN_FRONTEND noninteractive
|
4 |
+
|
5 |
+
WORKDIR /content
|
6 |
+
|
7 |
+
RUN 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 pip
|
8 |
+
|
9 |
+
RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui && cd stable-diffusion-webui && sed -i -e 's/ start()/ #start()/g' launch.py && python launch.py --skip-torch-cuda-test
|
10 |
+
|
11 |
+
COPY xformers.py /content/xformers.py
|
12 |
+
|
13 |
+
RUN chmod -R 777 /content
|
14 |
+
|
15 |
+
EXPOSE 7860
|
16 |
+
|
17 |
+
CMD python xformers.py
|
Dockerfile.Private.A10G
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Dockerfile Private A10G
|
2 |
+
|
3 |
+
# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/11.7.1/ubuntu2204/devel/cudnn8/Dockerfile
|
4 |
+
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
|
5 |
+
ENV DEBIAN_FRONTEND noninteractive
|
6 |
+
|
7 |
+
WORKDIR /content
|
8 |
+
|
9 |
+
RUN 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 pip
|
10 |
+
RUN 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.whl
|
11 |
+
RUN pip install --pre triton
|
12 |
+
RUN pip install numexpr
|
13 |
+
|
14 |
+
RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui && cd stable-diffusion-webui && sed -i -e 's/ start()/ #start()/g' launch.py && python launch.py --skip-torch-cuda-test
|
15 |
+
|
16 |
+
# ----------------------------Delete this block if you don't want to see the extra header----------------------------
|
17 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
|
18 |
+
RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
19 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
|
20 |
+
RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
21 |
+
# -------------------------------------------------------------------------------------------------------------------
|
22 |
+
|
23 |
+
ADD https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py
|
24 |
+
RUN git clone https://github.com/camenduru/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
|
25 |
+
RUN git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
|
26 |
+
RUN git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
|
27 |
+
RUN git clone https://github.com/Vetchems/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser
|
28 |
+
|
29 |
+
COPY config.json /content/config.json
|
30 |
+
COPY ui-config.json /content/ui-config.json
|
31 |
+
|
32 |
+
ADD 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.ckpt
|
33 |
+
ADD 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.pt
|
34 |
+
|
35 |
+
RUN adduser --disabled-password --gecos '' user
|
36 |
+
RUN chown -R user:user /content
|
37 |
+
RUN chmod -R 777 /content
|
38 |
+
USER user
|
39 |
+
|
40 |
+
EXPOSE 7860
|
41 |
+
|
42 |
+
CMD cd /content/stable-diffusion-webui && python webui.py --xformers --listen --disable-console-progressbars --no-progressbar-hiding --ui-config-file /content/ui-config.json --ui-settings-file /content/config.json
|
Dockerfile.Private.Nightly.A10G
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Dockerfile Private Nightly A10G
|
2 |
+
|
3 |
+
# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/11.7.1/ubuntu2204/devel/cudnn8/Dockerfile
|
4 |
+
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
|
5 |
+
ENV DEBIAN_FRONTEND noninteractive
|
6 |
+
|
7 |
+
WORKDIR /content
|
8 |
+
|
9 |
+
RUN 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 pip
|
10 |
+
RUN 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.whl
|
11 |
+
RUN pip install --pre triton
|
12 |
+
RUN pip install numexpr
|
13 |
+
|
14 |
+
RUN git clone https://github.com/camenduru/stable-diffusion-webui && cd stable-diffusion-webui && sed -i -e 's/ start()/ #start()/g' launch.py && python launch.py --skip-torch-cuda-test
|
15 |
+
|
16 |
+
# ----------------------------Delete this block if you don't want to see the extra header----------------------------
|
17 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
|
18 |
+
RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
19 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
|
20 |
+
RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
21 |
+
# -------------------------------------------------------------------------------------------------------------------
|
22 |
+
|
23 |
+
ADD https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py
|
24 |
+
RUN git clone https://github.com/deforum-art/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
|
25 |
+
RUN git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
|
26 |
+
RUN git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
|
27 |
+
RUN git clone https://github.com/Vetchems/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser
|
28 |
+
|
29 |
+
COPY config.json /content/config.json
|
30 |
+
COPY ui-config.json /content/ui-config.json
|
31 |
+
|
32 |
+
ADD 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.ckpt
|
33 |
+
ADD 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.pt
|
34 |
+
|
35 |
+
RUN adduser --disabled-password --gecos '' user
|
36 |
+
RUN chown -R user:user /content
|
37 |
+
RUN chmod -R 777 /content
|
38 |
+
USER user
|
39 |
+
|
40 |
+
EXPOSE 7860
|
41 |
+
|
42 |
+
CMD cd /content/stable-diffusion-webui && python webui.py --xformers --listen --disable-console-progressbars --no-progressbar-hiding --ui-config-file /content/ui-config.json --ui-settings-file /content/config.json
|
Dockerfile.Private.Nightly.T4
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Dockerfile Private Nightly T4
|
2 |
+
|
3 |
+
# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/11.7.1/ubuntu2204/devel/cudnn8/Dockerfile
|
4 |
+
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
|
5 |
+
ENV DEBIAN_FRONTEND noninteractive
|
6 |
+
|
7 |
+
WORKDIR /content
|
8 |
+
|
9 |
+
RUN 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 pip
|
10 |
+
RUN pip install https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.16/xformers-0.0.16+814314d.d20230118-cp310-cp310-linux_x86_64.whl
|
11 |
+
RUN pip install --pre triton
|
12 |
+
RUN pip install numexpr
|
13 |
+
|
14 |
+
RUN git clone https://github.com/camenduru/stable-diffusion-webui && cd stable-diffusion-webui && sed -i -e 's/ start()/ #start()/g' launch.py && python launch.py --skip-torch-cuda-test
|
15 |
+
|
16 |
+
# ----------------------------Delete this block if you don't want to see the extra header----------------------------
|
17 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
|
18 |
+
RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
19 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
|
20 |
+
RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
21 |
+
# -------------------------------------------------------------------------------------------------------------------
|
22 |
+
|
23 |
+
ADD https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py
|
24 |
+
RUN git clone https://github.com/deforum-art/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
|
25 |
+
RUN git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
|
26 |
+
RUN git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
|
27 |
+
RUN git clone https://github.com/Vetchems/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser
|
28 |
+
|
29 |
+
COPY config.json /content/config.json
|
30 |
+
COPY ui-config.json /content/ui-config.json
|
31 |
+
|
32 |
+
ADD 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.ckpt
|
33 |
+
ADD 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.pt
|
34 |
+
|
35 |
+
RUN adduser --disabled-password --gecos '' user
|
36 |
+
RUN chown -R user:user /content
|
37 |
+
RUN chmod -R 777 /content
|
38 |
+
USER user
|
39 |
+
|
40 |
+
EXPOSE 7860
|
41 |
+
|
42 |
+
CMD cd /content/stable-diffusion-webui && python webui.py --xformers --listen --disable-console-progressbars --no-progressbar-hiding --ui-config-file /content/ui-config.json --ui-settings-file /content/config.json
|
Dockerfile.Private.T4
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Dockerfile Private T4
|
2 |
+
|
3 |
+
# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/11.7.1/ubuntu2204/devel/cudnn8/Dockerfile
|
4 |
+
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
|
5 |
+
ENV DEBIAN_FRONTEND noninteractive
|
6 |
+
|
7 |
+
WORKDIR /content
|
8 |
+
|
9 |
+
RUN 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 pip
|
10 |
+
RUN pip install https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.16/xformers-0.0.16+814314d.d20230118-cp310-cp310-linux_x86_64.whl
|
11 |
+
RUN pip install --pre triton
|
12 |
+
RUN pip install numexpr
|
13 |
+
|
14 |
+
RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui && cd stable-diffusion-webui && sed -i -e 's/ start()/ #start()/g' launch.py && python launch.py --skip-torch-cuda-test
|
15 |
+
|
16 |
+
# ----------------------------Delete this block if you don't want to see the extra header----------------------------
|
17 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
|
18 |
+
RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
19 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
|
20 |
+
RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
21 |
+
# -------------------------------------------------------------------------------------------------------------------
|
22 |
+
|
23 |
+
ADD https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py
|
24 |
+
RUN git clone https://github.com/camenduru/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
|
25 |
+
RUN git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
|
26 |
+
RUN git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
|
27 |
+
RUN git clone https://github.com/Vetchems/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser
|
28 |
+
|
29 |
+
COPY config.json /content/config.json
|
30 |
+
COPY ui-config.json /content/ui-config.json
|
31 |
+
|
32 |
+
ADD 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.ckpt
|
33 |
+
ADD 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.pt
|
34 |
+
|
35 |
+
RUN adduser --disabled-password --gecos '' user
|
36 |
+
RUN chown -R user:user /content
|
37 |
+
RUN chmod -R 777 /content
|
38 |
+
USER user
|
39 |
+
|
40 |
+
EXPOSE 7860
|
41 |
+
|
42 |
+
CMD cd /content/stable-diffusion-webui && python webui.py --xformers --listen --disable-console-progressbars --no-progressbar-hiding --ui-config-file /content/ui-config.json --ui-settings-file /content/config.json
|
Dockerfile.Public.A10G
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Dockerfile Public A10G
|
2 |
+
|
3 |
+
# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/11.7.1/ubuntu2204/devel/cudnn8/Dockerfile
|
4 |
+
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
|
5 |
+
ENV DEBIAN_FRONTEND noninteractive
|
6 |
+
|
7 |
+
WORKDIR /content
|
8 |
+
|
9 |
+
RUN 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 pip
|
10 |
+
RUN 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.whl
|
11 |
+
RUN pip install --pre triton
|
12 |
+
RUN pip install numexpr
|
13 |
+
|
14 |
+
RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui && cd stable-diffusion-webui && sed -i -e 's/ start()/ #start()/g' launch.py && python launch.py --skip-torch-cuda-test
|
15 |
+
|
16 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
|
17 |
+
RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
18 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
|
19 |
+
RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
20 |
+
|
21 |
+
RUN sed -i -e '/(modelmerger_interface, \"Checkpoint Merger\", \"modelmerger\"),/d' /content/stable-diffusion-webui/modules/ui.py
|
22 |
+
RUN sed -i -e '/(train_interface, \"Train\", \"ti\"),/d' /content/stable-diffusion-webui/modules/ui.py
|
23 |
+
RUN sed -i -e '/extensions_interface, \"Extensions\", \"extensions\"/d' /content/stable-diffusion-webui/modules/ui.py
|
24 |
+
RUN sed -i -e '/settings_interface, \"Settings\", \"settings\"/d' /content/stable-diffusion-webui/modules/ui.py
|
25 |
+
RUN sed -i -e "s/document.getElementsByTagName('gradio-app')\[0\].shadowRoot/!!document.getElementsByTagName('gradio-app')[0].shadowRoot ? document.getElementsByTagName('gradio-app')[0].shadowRoot : document/g" /content/stable-diffusion-webui/script.js
|
26 |
+
RUN sed -i -e 's/ show_progress=False,/ show_progress=True,/g' /content/stable-diffusion-webui/modules/ui.py
|
27 |
+
RUN sed -i -e 's/default_enabled=False/default_enabled=True/g' /content/stable-diffusion-webui/webui.py
|
28 |
+
RUN sed -i -e 's/ outputs=\[/queue=False, &/g' /content/stable-diffusion-webui/modules/ui.py
|
29 |
+
RUN sed -i -e 's/ queue=False, / /g' /content/stable-diffusion-webui/modules/ui.py
|
30 |
+
|
31 |
+
RUN rm -rfv /content/stable-diffusion-webui/scripts/
|
32 |
+
|
33 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/shared-config.json /content/shared-config.json
|
34 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/shared-ui-config.json /content/shared-ui-config.json
|
35 |
+
|
36 |
+
ADD 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.ckpt
|
37 |
+
ADD 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.pt
|
38 |
+
|
39 |
+
RUN adduser --disabled-password --gecos '' user
|
40 |
+
RUN chown -R user:user /content
|
41 |
+
RUN chmod -R 777 /content
|
42 |
+
USER user
|
43 |
+
|
44 |
+
EXPOSE 7860
|
45 |
+
|
46 |
+
CMD cd /content/stable-diffusion-webui && python webui.py --xformers --listen --disable-console-progressbars --enable-console-prompts --no-progressbar-hiding --ui-config-file /content/shared-ui-config.json --ui-settings-file /content/shared-config.json
|
Dockerfile.Public.Nightly.A10G
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Dockerfile Public Nightly A10G
|
2 |
+
|
3 |
+
# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/11.7.1/ubuntu2204/devel/cudnn8/Dockerfile
|
4 |
+
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
|
5 |
+
ENV DEBIAN_FRONTEND noninteractive
|
6 |
+
|
7 |
+
WORKDIR /content
|
8 |
+
|
9 |
+
RUN 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 pip
|
10 |
+
RUN 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.whl
|
11 |
+
RUN pip install --pre triton
|
12 |
+
RUN pip install numexpr
|
13 |
+
|
14 |
+
RUN git clone https://github.com/camenduru/stable-diffusion-webui && cd stable-diffusion-webui && sed -i -e 's/ start()/ #start()/g' launch.py && python launch.py --skip-torch-cuda-test
|
15 |
+
|
16 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
|
17 |
+
RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
18 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
|
19 |
+
RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
20 |
+
|
21 |
+
RUN sed -i -e '/(modelmerger_interface, \"Checkpoint Merger\", \"modelmerger\"),/d' /content/stable-diffusion-webui/modules/ui.py
|
22 |
+
RUN sed -i -e '/(train_interface, \"Train\", \"ti\"),/d' /content/stable-diffusion-webui/modules/ui.py
|
23 |
+
RUN sed -i -e '/extensions_interface, \"Extensions\", \"extensions\"/d' /content/stable-diffusion-webui/modules/ui.py
|
24 |
+
RUN sed -i -e '/settings_interface, \"Settings\", \"settings\"/d' /content/stable-diffusion-webui/modules/ui.py
|
25 |
+
RUN sed -i -e "s/document.getElementsByTagName('gradio-app')\[0\].shadowRoot/!!document.getElementsByTagName('gradio-app')[0].shadowRoot ? document.getElementsByTagName('gradio-app')[0].shadowRoot : document/g" /content/stable-diffusion-webui/script.js
|
26 |
+
RUN sed -i -e 's/ show_progress=False,/ show_progress=True,/g' /content/stable-diffusion-webui/modules/ui.py
|
27 |
+
RUN sed -i -e 's/default_enabled=False/default_enabled=True/g' /content/stable-diffusion-webui/webui.py
|
28 |
+
RUN sed -i -e 's/ outputs=\[/queue=False, &/g' /content/stable-diffusion-webui/modules/ui.py
|
29 |
+
RUN sed -i -e 's/ queue=False, / /g' /content/stable-diffusion-webui/modules/ui.py
|
30 |
+
|
31 |
+
RUN rm -rfv /content/stable-diffusion-webui/scripts/
|
32 |
+
|
33 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/shared-config.json /content/shared-config.json
|
34 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/shared-ui-config.json /content/shared-ui-config.json
|
35 |
+
|
36 |
+
ADD 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.ckpt
|
37 |
+
ADD 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.pt
|
38 |
+
|
39 |
+
RUN adduser --disabled-password --gecos '' user
|
40 |
+
RUN chown -R user:user /content
|
41 |
+
RUN chmod -R 777 /content
|
42 |
+
USER user
|
43 |
+
|
44 |
+
EXPOSE 7860
|
45 |
+
|
46 |
+
CMD cd /content/stable-diffusion-webui && python webui.py --xformers --listen --disable-console-progressbars --enable-console-prompts --no-progressbar-hiding --ui-config-file /content/shared-ui-config.json --ui-settings-file /content/shared-config.json
|
Dockerfile.Public.Nightly.T4
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Dockerfile Public Nightly T4
|
2 |
+
|
3 |
+
# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/11.7.1/ubuntu2204/devel/cudnn8/Dockerfile
|
4 |
+
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
|
5 |
+
ENV DEBIAN_FRONTEND noninteractive
|
6 |
+
|
7 |
+
WORKDIR /content
|
8 |
+
|
9 |
+
RUN 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 pip
|
10 |
+
RUN pip install https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.16/xformers-0.0.16+814314d.d20230118-cp310-cp310-linux_x86_64.whl
|
11 |
+
RUN pip install --pre triton
|
12 |
+
RUN pip install numexpr
|
13 |
+
|
14 |
+
RUN git clone https://github.com/camenduru/stable-diffusion-webui && cd stable-diffusion-webui && sed -i -e 's/ start()/ #start()/g' launch.py && python launch.py --skip-torch-cuda-test
|
15 |
+
|
16 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
|
17 |
+
RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
18 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
|
19 |
+
RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
20 |
+
|
21 |
+
RUN sed -i -e '/(modelmerger_interface, \"Checkpoint Merger\", \"modelmerger\"),/d' /content/stable-diffusion-webui/modules/ui.py
|
22 |
+
RUN sed -i -e '/(train_interface, \"Train\", \"ti\"),/d' /content/stable-diffusion-webui/modules/ui.py
|
23 |
+
RUN sed -i -e '/extensions_interface, \"Extensions\", \"extensions\"/d' /content/stable-diffusion-webui/modules/ui.py
|
24 |
+
RUN sed -i -e '/settings_interface, \"Settings\", \"settings\"/d' /content/stable-diffusion-webui/modules/ui.py
|
25 |
+
RUN sed -i -e "s/document.getElementsByTagName('gradio-app')\[0\].shadowRoot/!!document.getElementsByTagName('gradio-app')[0].shadowRoot ? document.getElementsByTagName('gradio-app')[0].shadowRoot : document/g" /content/stable-diffusion-webui/script.js
|
26 |
+
RUN sed -i -e 's/ show_progress=False,/ show_progress=True,/g' /content/stable-diffusion-webui/modules/ui.py
|
27 |
+
RUN sed -i -e 's/default_enabled=False/default_enabled=True/g' /content/stable-diffusion-webui/webui.py
|
28 |
+
RUN sed -i -e 's/ outputs=\[/queue=False, &/g' /content/stable-diffusion-webui/modules/ui.py
|
29 |
+
RUN sed -i -e 's/ queue=False, / /g' /content/stable-diffusion-webui/modules/ui.py
|
30 |
+
|
31 |
+
RUN rm -rfv /content/stable-diffusion-webui/scripts/
|
32 |
+
|
33 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/shared-config.json /content/shared-config.json
|
34 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/shared-ui-config.json /content/shared-ui-config.json
|
35 |
+
|
36 |
+
ADD 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.ckpt
|
37 |
+
ADD 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.pt
|
38 |
+
|
39 |
+
RUN adduser --disabled-password --gecos '' user
|
40 |
+
RUN chown -R user:user /content
|
41 |
+
RUN chmod -R 777 /content
|
42 |
+
USER user
|
43 |
+
|
44 |
+
EXPOSE 7860
|
45 |
+
|
46 |
+
CMD cd /content/stable-diffusion-webui && python webui.py --xformers --listen --disable-console-progressbars --enable-console-prompts --no-progressbar-hiding --ui-config-file /content/shared-ui-config.json --ui-settings-file /content/shared-config.json
|
Dockerfile.Public.T4
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Dockerfile Public T4
|
2 |
+
|
3 |
+
# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/11.7.1/ubuntu2204/devel/cudnn8/Dockerfile
|
4 |
+
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
|
5 |
+
ENV DEBIAN_FRONTEND noninteractive
|
6 |
+
|
7 |
+
WORKDIR /content
|
8 |
+
|
9 |
+
RUN 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 pip
|
10 |
+
RUN pip install https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.16/xformers-0.0.16+814314d.d20230118-cp310-cp310-linux_x86_64.whl
|
11 |
+
RUN pip install --pre triton
|
12 |
+
RUN pip install numexpr
|
13 |
+
|
14 |
+
RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui && cd stable-diffusion-webui && sed -i -e 's/ start()/ #start()/g' launch.py && python launch.py --skip-torch-cuda-test
|
15 |
+
|
16 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
|
17 |
+
RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
18 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
|
19 |
+
RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
20 |
+
|
21 |
+
RUN sed -i -e '/(modelmerger_interface, \"Checkpoint Merger\", \"modelmerger\"),/d' /content/stable-diffusion-webui/modules/ui.py
|
22 |
+
RUN sed -i -e '/(train_interface, \"Train\", \"ti\"),/d' /content/stable-diffusion-webui/modules/ui.py
|
23 |
+
RUN sed -i -e '/extensions_interface, \"Extensions\", \"extensions\"/d' /content/stable-diffusion-webui/modules/ui.py
|
24 |
+
RUN sed -i -e '/settings_interface, \"Settings\", \"settings\"/d' /content/stable-diffusion-webui/modules/ui.py
|
25 |
+
RUN sed -i -e "s/document.getElementsByTagName('gradio-app')\[0\].shadowRoot/!!document.getElementsByTagName('gradio-app')[0].shadowRoot ? document.getElementsByTagName('gradio-app')[0].shadowRoot : document/g" /content/stable-diffusion-webui/script.js
|
26 |
+
RUN sed -i -e 's/ show_progress=False,/ show_progress=True,/g' /content/stable-diffusion-webui/modules/ui.py
|
27 |
+
RUN sed -i -e 's/default_enabled=False/default_enabled=True/g' /content/stable-diffusion-webui/webui.py
|
28 |
+
RUN sed -i -e 's/ outputs=\[/queue=False, &/g' /content/stable-diffusion-webui/modules/ui.py
|
29 |
+
RUN sed -i -e 's/ queue=False, / /g' /content/stable-diffusion-webui/modules/ui.py
|
30 |
+
|
31 |
+
RUN rm -rfv /content/stable-diffusion-webui/scripts/
|
32 |
+
|
33 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/shared-config.json /content/shared-config.json
|
34 |
+
ADD https://github.com/camenduru/webui-docker/raw/main/shared-ui-config.json /content/shared-ui-config.json
|
35 |
+
|
36 |
+
ADD 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.ckpt
|
37 |
+
ADD 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.pt
|
38 |
+
|
39 |
+
RUN adduser --disabled-password --gecos '' user
|
40 |
+
RUN chown -R user:user /content
|
41 |
+
RUN chmod -R 777 /content
|
42 |
+
USER user
|
43 |
+
|
44 |
+
EXPOSE 7860
|
45 |
+
|
46 |
+
CMD cd /content/stable-diffusion-webui && python webui.py --xformers --listen --disable-console-progressbars --enable-console-prompts --no-progressbar-hiding --ui-config-file /content/shared-ui-config.json --ui-settings-file /content/shared-config.json
|