camenduru commited on
Commit
cec1914
1 Parent(s): 50340bc

optimizing docker thanks to chris-rannou ❤

Browse files
Dockerfile CHANGED
@@ -8,7 +8,14 @@ ENV DEBIAN_FRONTEND noninteractive
8
 
9
  WORKDIR /content
10
 
11
- 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
 
 
 
 
 
 
 
12
  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
13
  RUN pip install --pre triton
14
  RUN pip install numexpr
@@ -19,9 +26,9 @@ RUN sed -i -e '''/prepare_environment()/a\ os.system\(f\"""sed -i -e ''\"s/di
19
  RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
20
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
21
 
22
- ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
23
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
24
- ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
25
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
26
 
27
  RUN sed -i -e '/(modelmerger_interface, \"Checkpoint Merger\", \"modelmerger\"),/d' /content/stable-diffusion-webui/modules/ui.py
@@ -36,14 +43,10 @@ RUN sed -i -e 's/ queue=False, / /g' /content/stab
36
 
37
  RUN rm -rfv /content/stable-diffusion-webui/scripts/
38
 
39
- ADD https://github.com/camenduru/webui-docker/raw/main/shared-config.json /content/shared-config.json
40
- ADD https://github.com/camenduru/webui-docker/raw/main/shared-ui-config.json /content/shared-ui-config.json
41
-
42
- ADD https://huggingface.co/ckpt/anything-v4.5-vae-swapped/resolve/main/anything-v4.5-vae-swapped.safetensors /content/stable-diffusion-webui/models/Stable-diffusion/anything-v4.5-vae-swapped.safetensors
43
 
44
- RUN adduser --disabled-password --gecos '' user
45
- RUN chmod -R 777 /content
46
- USER user
47
 
48
  EXPOSE 7860
49
 
 
8
 
9
  WORKDIR /content
10
 
11
+ 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 && rm -rf /var/lib/apt/lists/*
12
+
13
+ RUN adduser --disabled-password --gecos '' user
14
+ RUN mkdir /content && chown -R user:user /content
15
+ WORKDIR /content
16
+ USER user
17
+
18
+ RUN pip3 install --upgrade pip
19
  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
20
  RUN pip install --pre triton
21
  RUN pip install numexpr
 
26
  RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
27
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
28
 
29
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
30
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
31
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
32
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
33
 
34
  RUN sed -i -e '/(modelmerger_interface, \"Checkpoint Merger\", \"modelmerger\"),/d' /content/stable-diffusion-webui/modules/ui.py
 
43
 
44
  RUN rm -rfv /content/stable-diffusion-webui/scripts/
45
 
46
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/shared-config.json /content/shared-config.json
47
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/shared-ui-config.json /content/shared-ui-config.json
 
 
48
 
49
+ ADD --chown=user https://huggingface.co/ckpt/anything-v4.5-vae-swapped/resolve/main/anything-v4.5-vae-swapped.safetensors /content/stable-diffusion-webui/models/Stable-diffusion/anything-v4.5-vae-swapped.safetensors
 
 
50
 
51
  EXPOSE 7860
52
 
Dockerfile.Private.A10G CHANGED
@@ -8,7 +8,14 @@ ENV DEBIAN_FRONTEND noninteractive
8
 
9
  WORKDIR /content
10
 
11
- 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
 
 
 
 
 
 
 
12
  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
13
  RUN pip install --pre triton
14
  RUN pip install numexpr
@@ -20,28 +27,24 @@ RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/lau
20
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
21
 
22
  # ----------------------------Delete this block if you don't want to see the extra header----------------------------
23
- ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
24
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
25
- ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
26
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
27
  # -------------------------------------------------------------------------------------------------------------------
28
 
29
- ADD https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py
30
  RUN git clone -b v1.6 https://github.com/camenduru/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
31
  RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
32
  RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
33
  RUN git clone -b v1.6 https://github.com/camenduru/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser
34
  RUN git clone -b v1.6 https://github.com/camenduru/sd-webui-additional-networks /content/stable-diffusion-webui/extensions/sd-webu
35
 
36
- COPY config.json /content/config.json
37
- COPY ui-config.json /content/ui-config.json
38
-
39
- 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
40
- 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
41
 
42
- RUN adduser --disabled-password --gecos '' user
43
- RUN chmod -R 777 /content
44
- USER user
45
 
46
  EXPOSE 7860
47
 
 
8
 
9
  WORKDIR /content
10
 
11
+ 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 && rm -rf /var/lib/apt/lists/*
12
+
13
+ RUN adduser --disabled-password --gecos '' user
14
+ RUN mkdir /content && chown -R user:user /content
15
+ WORKDIR /content
16
+ USER user
17
+
18
+ RUN pip3 install --upgrade pip
19
  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
20
  RUN pip install --pre triton
21
  RUN pip install numexpr
 
27
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
28
 
29
  # ----------------------------Delete this block if you don't want to see the extra header----------------------------
30
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
31
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
32
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
33
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
34
  # -------------------------------------------------------------------------------------------------------------------
35
 
36
+ ADD --chown=user https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py
37
  RUN git clone -b v1.6 https://github.com/camenduru/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
38
  RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
39
  RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
40
  RUN git clone -b v1.6 https://github.com/camenduru/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser
41
  RUN git clone -b v1.6 https://github.com/camenduru/sd-webui-additional-networks /content/stable-diffusion-webui/extensions/sd-webu
42
 
43
+ COPY --chown=user config.json /content/config.json
44
+ COPY --chown=user ui-config.json /content/ui-config.json
 
 
 
45
 
46
+ ADD --chown=user 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
47
+ ADD --chown=user 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
 
48
 
49
  EXPOSE 7860
50
 
Dockerfile.Private.Nightly.A10G CHANGED
@@ -8,7 +8,14 @@ ENV DEBIAN_FRONTEND noninteractive
8
 
9
  WORKDIR /content
10
 
11
- 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
 
 
 
 
 
 
 
12
  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
13
  RUN pip install --pre triton
14
  RUN pip install numexpr
@@ -19,28 +26,24 @@ RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/lau
19
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
20
 
21
  # ----------------------------Delete this block if you don't want to see the extra header----------------------------
22
- ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
23
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
24
- ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
25
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
26
  # -------------------------------------------------------------------------------------------------------------------
27
 
28
- ADD https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py
29
  RUN git clone https://github.com/deforum-art/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
30
  RUN git clone https://github.com/AlUlkesh/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
31
  RUN git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
32
  RUN git clone -b v2.0 https://github.com/camenduru/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser
33
  RUN git clone https://github.com/kohya-ss/sd-webui-additional-networks /content/stable-diffusion-webui/extensions/sd-webui-additional-networks
34
 
35
- COPY config.json /content/config.json
36
- COPY ui-config.json /content/ui-config.json
37
-
38
- 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
39
- 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
40
 
41
- RUN adduser --disabled-password --gecos '' user
42
- RUN chmod -R 777 /content
43
- USER user
44
 
45
  EXPOSE 7860
46
 
 
8
 
9
  WORKDIR /content
10
 
11
+ 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 && rm -rf /var/lib/apt/lists/*
12
+
13
+ RUN adduser --disabled-password --gecos '' user
14
+ RUN mkdir /content && chown -R user:user /content
15
+ WORKDIR /content
16
+ USER user
17
+
18
+ RUN pip3 install --upgrade pip
19
  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
20
  RUN pip install --pre triton
21
  RUN pip install numexpr
 
26
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
27
 
28
  # ----------------------------Delete this block if you don't want to see the extra header----------------------------
29
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
30
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
31
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
32
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
33
  # -------------------------------------------------------------------------------------------------------------------
34
 
35
+ ADD --chown=user https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py
36
  RUN git clone https://github.com/deforum-art/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
37
  RUN git clone https://github.com/AlUlkesh/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
38
  RUN git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
39
  RUN git clone -b v2.0 https://github.com/camenduru/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser
40
  RUN git clone https://github.com/kohya-ss/sd-webui-additional-networks /content/stable-diffusion-webui/extensions/sd-webui-additional-networks
41
 
42
+ COPY --chown=user config.json /content/config.json
43
+ COPY --chown=user ui-config.json /content/ui-config.json
 
 
 
44
 
45
+ ADD --chown=user 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
46
+ ADD --chown=user 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
 
47
 
48
  EXPOSE 7860
49
 
Dockerfile.Private.Nightly.CPU CHANGED
@@ -8,7 +8,14 @@ ENV DEBIAN_FRONTEND noninteractive
8
 
9
  WORKDIR /content
10
 
11
- 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
 
 
 
 
 
 
 
12
  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
13
  RUN pip install --pre triton
14
  RUN pip install numexpr
@@ -18,28 +25,24 @@ RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/lau
18
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
19
 
20
  # ----------------------------Delete this block if you don't want to see the extra header----------------------------
21
- ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
22
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
23
- ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
24
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
25
  # -------------------------------------------------------------------------------------------------------------------
26
 
27
- ADD https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py
28
  RUN git clone https://github.com/deforum-art/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
29
  RUN git clone https://github.com/AlUlkesh/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
30
  RUN git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
31
  RUN git clone -b v2.0 https://github.com/camenduru/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser
32
  RUN git clone https://github.com/kohya-ss/sd-webui-additional-networks /content/stable-diffusion-webui/extensions/sd-webui-additional-networks
33
 
34
- COPY config.json /content/config.json
35
- COPY ui-config.json /content/ui-config.json
36
-
37
- 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
38
- 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
39
 
40
- RUN adduser --disabled-password --gecos '' user
41
- RUN chmod -R 777 /content
42
- USER user
43
 
44
  EXPOSE 7860
45
 
 
8
 
9
  WORKDIR /content
10
 
11
+ 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 && rm -rf /var/lib/apt/lists/*
12
+
13
+ RUN adduser --disabled-password --gecos '' user
14
+ RUN mkdir /content && chown -R user:user /content
15
+ WORKDIR /content
16
+ USER user
17
+
18
+ RUN pip3 install --upgrade pip
19
  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
20
  RUN pip install --pre triton
21
  RUN pip install numexpr
 
25
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
26
 
27
  # ----------------------------Delete this block if you don't want to see the extra header----------------------------
28
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
29
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
30
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
31
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
32
  # -------------------------------------------------------------------------------------------------------------------
33
 
34
+ ADD --chown=user https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py
35
  RUN git clone https://github.com/deforum-art/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
36
  RUN git clone https://github.com/AlUlkesh/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
37
  RUN git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
38
  RUN git clone -b v2.0 https://github.com/camenduru/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser
39
  RUN git clone https://github.com/kohya-ss/sd-webui-additional-networks /content/stable-diffusion-webui/extensions/sd-webui-additional-networks
40
 
41
+ COPY --chown=user config.json /content/config.json
42
+ COPY --chown=user ui-config.json /content/ui-config.json
 
 
 
43
 
44
+ ADD --chown=user 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
45
+ ADD --chown=user 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
 
46
 
47
  EXPOSE 7860
48
 
Dockerfile.Private.Nightly.T4 CHANGED
@@ -8,7 +8,14 @@ ENV DEBIAN_FRONTEND noninteractive
8
 
9
  WORKDIR /content
10
 
11
- 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
 
 
 
 
 
 
 
12
  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
13
  RUN pip install --pre triton
14
  RUN pip install numexpr
@@ -19,28 +26,24 @@ RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/lau
19
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
20
 
21
  # ----------------------------Delete this block if you don't want to see the extra header----------------------------
22
- ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
23
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
24
- ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
25
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
26
  # -------------------------------------------------------------------------------------------------------------------
27
 
28
- ADD https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py
29
  RUN git clone https://github.com/deforum-art/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
30
  RUN git clone https://github.com/AlUlkesh/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
31
  RUN git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
32
  RUN git clone -b v2.0 https://github.com/camenduru/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser
33
  RUN git clone https://github.com/kohya-ss/sd-webui-additional-networks /content/stable-diffusion-webui/extensions/sd-webui-additional-networks
34
 
35
- COPY config.json /content/config.json
36
- COPY ui-config.json /content/ui-config.json
37
-
38
- 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
39
- 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
40
 
41
- RUN adduser --disabled-password --gecos '' user
42
- RUN chmod -R 777 /content
43
- USER user
44
 
45
  EXPOSE 7860
46
 
 
8
 
9
  WORKDIR /content
10
 
11
+ 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 && rm -rf /var/lib/apt/lists/*
12
+
13
+ RUN adduser --disabled-password --gecos '' user
14
+ RUN mkdir /content && chown -R user:user /content
15
+ WORKDIR /content
16
+ USER user
17
+
18
+ RUN pip3 install --upgrade pip
19
  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
20
  RUN pip install --pre triton
21
  RUN pip install numexpr
 
26
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
27
 
28
  # ----------------------------Delete this block if you don't want to see the extra header----------------------------
29
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
30
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
31
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
32
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
33
  # -------------------------------------------------------------------------------------------------------------------
34
 
35
+ ADD --chown=user https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py
36
  RUN git clone https://github.com/deforum-art/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
37
  RUN git clone https://github.com/AlUlkesh/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
38
  RUN git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
39
  RUN git clone -b v2.0 https://github.com/camenduru/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser
40
  RUN git clone https://github.com/kohya-ss/sd-webui-additional-networks /content/stable-diffusion-webui/extensions/sd-webui-additional-networks
41
 
42
+ COPY --chown=user config.json /content/config.json
43
+ COPY --chown=user ui-config.json /content/ui-config.json
 
 
 
44
 
45
+ ADD --chown=user 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
46
+ ADD --chown=user 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
 
47
 
48
  EXPOSE 7860
49
 
Dockerfile.Private.T4 CHANGED
@@ -8,7 +8,14 @@ ENV DEBIAN_FRONTEND noninteractive
8
 
9
  WORKDIR /content
10
 
11
- 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
 
 
 
 
 
 
 
12
  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
13
  RUN pip install --pre triton
14
  RUN pip install numexpr
@@ -20,28 +27,24 @@ RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/lau
20
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
21
 
22
  # ----------------------------Delete this block if you don't want to see the extra header----------------------------
23
- ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
24
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
25
- ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
26
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
27
  # -------------------------------------------------------------------------------------------------------------------
28
 
29
- ADD https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py
30
  RUN git clone -b v1.6 https://github.com/camenduru/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
31
  RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
32
  RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
33
  RUN git clone -b v1.6 https://github.com/camenduru/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser
34
  RUN git clone -b v1.6 https://github.com/camenduru/sd-webui-additional-networks /content/stable-diffusion-webui/extensions/sd-webu
35
 
36
- COPY config.json /content/config.json
37
- COPY ui-config.json /content/ui-config.json
38
-
39
- 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
40
- 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
41
 
42
- RUN adduser --disabled-password --gecos '' user
43
- RUN chmod -R 777 /content
44
- USER user
45
 
46
  EXPOSE 7860
47
 
 
8
 
9
  WORKDIR /content
10
 
11
+ 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 && rm -rf /var/lib/apt/lists/*
12
+
13
+ RUN adduser --disabled-password --gecos '' user
14
+ RUN mkdir /content && chown -R user:user /content
15
+ WORKDIR /content
16
+ USER user
17
+
18
+ RUN pip3 install --upgrade pip
19
  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
20
  RUN pip install --pre triton
21
  RUN pip install numexpr
 
27
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
28
 
29
  # ----------------------------Delete this block if you don't want to see the extra header----------------------------
30
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
31
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
32
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
33
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
34
  # -------------------------------------------------------------------------------------------------------------------
35
 
36
+ ADD --chown=user https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py
37
  RUN git clone -b v1.6 https://github.com/camenduru/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
38
  RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
39
  RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
40
  RUN git clone -b v1.6 https://github.com/camenduru/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser
41
  RUN git clone -b v1.6 https://github.com/camenduru/sd-webui-additional-networks /content/stable-diffusion-webui/extensions/sd-webu
42
 
43
+ COPY --chown=user config.json /content/config.json
44
+ COPY --chown=user ui-config.json /content/ui-config.json
 
 
 
45
 
46
+ ADD --chown=user 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
47
+ ADD --chown=user 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
 
48
 
49
  EXPOSE 7860
50
 
Dockerfile.Public.A10G CHANGED
@@ -8,7 +8,14 @@ ENV DEBIAN_FRONTEND noninteractive
8
 
9
  WORKDIR /content
10
 
11
- 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
 
 
 
 
 
 
 
12
  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
13
  RUN pip install --pre triton
14
  RUN pip install numexpr
@@ -19,9 +26,9 @@ RUN sed -i -e '''/prepare_environment()/a\ os.system\(f\"""sed -i -e ''\"s/di
19
  RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
20
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
21
 
22
- ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
23
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
24
- ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
25
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
26
 
27
  RUN sed -i -e '/(modelmerger_interface, \"Checkpoint Merger\", \"modelmerger\"),/d' /content/stable-diffusion-webui/modules/ui.py
@@ -36,15 +43,11 @@ RUN sed -i -e 's/ queue=False, / /g' /content/stab
36
 
37
  RUN rm -rfv /content/stable-diffusion-webui/scripts/
38
 
39
- ADD https://github.com/camenduru/webui-docker/raw/main/shared-config.json /content/shared-config.json
40
- ADD https://github.com/camenduru/webui-docker/raw/main/shared-ui-config.json /content/shared-ui-config.json
41
-
42
- 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
43
- 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
44
 
45
- RUN adduser --disabled-password --gecos '' user
46
- RUN chmod -R 777 /content
47
- USER user
48
 
49
  EXPOSE 7860
50
 
 
8
 
9
  WORKDIR /content
10
 
11
+ 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 && rm -rf /var/lib/apt/lists/*
12
+
13
+ RUN adduser --disabled-password --gecos '' user
14
+ RUN mkdir /content && chown -R user:user /content
15
+ WORKDIR /content
16
+ USER user
17
+
18
+ RUN pip3 install --upgrade pip
19
  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
20
  RUN pip install --pre triton
21
  RUN pip install numexpr
 
26
  RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
27
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
28
 
29
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
30
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
31
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
32
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
33
 
34
  RUN sed -i -e '/(modelmerger_interface, \"Checkpoint Merger\", \"modelmerger\"),/d' /content/stable-diffusion-webui/modules/ui.py
 
43
 
44
  RUN rm -rfv /content/stable-diffusion-webui/scripts/
45
 
46
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/shared-config.json /content/shared-config.json
47
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/shared-ui-config.json /content/shared-ui-config.json
 
 
 
48
 
49
+ ADD --chown=user 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
50
+ ADD --chown=user 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
 
51
 
52
  EXPOSE 7860
53
 
Dockerfile.Public.Nightly.A10G CHANGED
@@ -8,7 +8,14 @@ ENV DEBIAN_FRONTEND noninteractive
8
 
9
  WORKDIR /content
10
 
11
- 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
 
 
 
 
 
 
 
12
  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
13
  RUN pip install --pre triton
14
  RUN pip install numexpr
@@ -18,9 +25,9 @@ RUN sed -i -e '''/prepare_environment()/a\ os.system\(f\"""sed -i -e ''\"s/di
18
  RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
19
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
20
 
21
- ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
22
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
23
- ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
24
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
25
 
26
  RUN sed -i -e '/(modelmerger_interface, \"Checkpoint Merger\", \"modelmerger\"),/d' /content/stable-diffusion-webui/modules/ui.py
@@ -35,15 +42,11 @@ RUN sed -i -e 's/ queue=False, / /g' /content/stab
35
 
36
  RUN rm -rfv /content/stable-diffusion-webui/scripts/
37
 
38
- ADD https://github.com/camenduru/webui-docker/raw/main/shared-config.json /content/shared-config.json
39
- ADD https://github.com/camenduru/webui-docker/raw/main/shared-ui-config.json /content/shared-ui-config.json
40
-
41
- 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
42
- 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
43
 
44
- RUN adduser --disabled-password --gecos '' user
45
- RUN chmod -R 777 /content
46
- USER user
47
 
48
  EXPOSE 7860
49
 
 
8
 
9
  WORKDIR /content
10
 
11
+ 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 && rm -rf /var/lib/apt/lists/*
12
+
13
+ RUN adduser --disabled-password --gecos '' user
14
+ RUN mkdir /content && chown -R user:user /content
15
+ WORKDIR /content
16
+ USER user
17
+
18
+ RUN pip3 install --upgrade pip
19
  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
20
  RUN pip install --pre triton
21
  RUN pip install numexpr
 
25
  RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
26
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
27
 
28
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
29
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
30
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
31
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
32
 
33
  RUN sed -i -e '/(modelmerger_interface, \"Checkpoint Merger\", \"modelmerger\"),/d' /content/stable-diffusion-webui/modules/ui.py
 
42
 
43
  RUN rm -rfv /content/stable-diffusion-webui/scripts/
44
 
45
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/shared-config.json /content/shared-config.json
46
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/shared-ui-config.json /content/shared-ui-config.json
 
 
 
47
 
48
+ ADD --chown=user 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
49
+ ADD --chown=user 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
 
50
 
51
  EXPOSE 7860
52
 
Dockerfile.Public.Nightly.T4 CHANGED
@@ -8,7 +8,14 @@ ENV DEBIAN_FRONTEND noninteractive
8
 
9
  WORKDIR /content
10
 
11
- 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
 
 
 
 
 
 
 
12
  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
13
  RUN pip install --pre triton
14
  RUN pip install numexpr
@@ -18,9 +25,9 @@ RUN sed -i -e '''/prepare_environment()/a\ os.system\(f\"""sed -i -e ''\"s/di
18
  RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
19
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
20
 
21
- ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
22
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
23
- ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
24
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
25
 
26
  RUN sed -i -e '/(modelmerger_interface, \"Checkpoint Merger\", \"modelmerger\"),/d' /content/stable-diffusion-webui/modules/ui.py
@@ -35,15 +42,11 @@ RUN sed -i -e 's/ queue=False, / /g' /content/stab
35
 
36
  RUN rm -rfv /content/stable-diffusion-webui/scripts/
37
 
38
- ADD https://github.com/camenduru/webui-docker/raw/main/shared-config.json /content/shared-config.json
39
- ADD https://github.com/camenduru/webui-docker/raw/main/shared-ui-config.json /content/shared-ui-config.json
40
-
41
- 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
42
- 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
43
 
44
- RUN adduser --disabled-password --gecos '' user
45
- RUN chmod -R 777 /content
46
- USER user
47
 
48
  EXPOSE 7860
49
 
 
8
 
9
  WORKDIR /content
10
 
11
+ 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 && rm -rf /var/lib/apt/lists/*
12
+
13
+ RUN adduser --disabled-password --gecos '' user
14
+ RUN mkdir /content && chown -R user:user /content
15
+ WORKDIR /content
16
+ USER user
17
+
18
+ RUN pip3 install --upgrade pip
19
  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
20
  RUN pip install --pre triton
21
  RUN pip install numexpr
 
25
  RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
26
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
27
 
28
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
29
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
30
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
31
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
32
 
33
  RUN sed -i -e '/(modelmerger_interface, \"Checkpoint Merger\", \"modelmerger\"),/d' /content/stable-diffusion-webui/modules/ui.py
 
42
 
43
  RUN rm -rfv /content/stable-diffusion-webui/scripts/
44
 
45
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/shared-config.json /content/shared-config.json
46
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/shared-ui-config.json /content/shared-ui-config.json
 
 
 
47
 
48
+ ADD --chown=user 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
49
+ ADD --chown=user 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
 
50
 
51
  EXPOSE 7860
52
 
Dockerfile.Public.T4 CHANGED
@@ -8,7 +8,14 @@ ENV DEBIAN_FRONTEND noninteractive
8
 
9
  WORKDIR /content
10
 
11
- 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
 
 
 
 
 
 
 
12
  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
13
  RUN pip install --pre triton
14
  RUN pip install numexpr
@@ -19,9 +26,9 @@ RUN sed -i -e '''/prepare_environment()/a\ os.system\(f\"""sed -i -e ''\"s/di
19
  RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
20
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
21
 
22
- ADD https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
23
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
24
- ADD https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
25
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
26
 
27
  RUN sed -i -e '/(modelmerger_interface, \"Checkpoint Merger\", \"modelmerger\"),/d' /content/stable-diffusion-webui/modules/ui.py
@@ -36,15 +43,11 @@ RUN sed -i -e 's/ queue=False, / /g' /content/stab
36
 
37
  RUN rm -rfv /content/stable-diffusion-webui/scripts/
38
 
39
- ADD https://github.com/camenduru/webui-docker/raw/main/shared-config.json /content/shared-config.json
40
- ADD https://github.com/camenduru/webui-docker/raw/main/shared-ui-config.json /content/shared-ui-config.json
41
-
42
- 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
43
- 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
44
 
45
- RUN adduser --disabled-password --gecos '' user
46
- RUN chmod -R 777 /content
47
- USER user
48
 
49
  EXPOSE 7860
50
 
 
8
 
9
  WORKDIR /content
10
 
11
+ 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 && rm -rf /var/lib/apt/lists/*
12
+
13
+ RUN adduser --disabled-password --gecos '' user
14
+ RUN mkdir /content && chown -R user:user /content
15
+ WORKDIR /content
16
+ USER user
17
+
18
+ RUN pip3 install --upgrade pip
19
  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
20
  RUN pip install --pre triton
21
  RUN pip install numexpr
 
26
  RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
27
  RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
28
 
29
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
30
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
31
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
32
  RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
33
 
34
  RUN sed -i -e '/(modelmerger_interface, \"Checkpoint Merger\", \"modelmerger\"),/d' /content/stable-diffusion-webui/modules/ui.py
 
43
 
44
  RUN rm -rfv /content/stable-diffusion-webui/scripts/
45
 
46
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/shared-config.json /content/shared-config.json
47
+ ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/shared-ui-config.json /content/shared-ui-config.json
 
 
 
48
 
49
+ ADD --chown=user 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
50
+ ADD --chown=user 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
 
51
 
52
  EXPOSE 7860
53