Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +15 -12
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
# Dockerfile
|
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
|
@@ -23,26 +23,29 @@ RUN sed -i -e '''/prepare_environment()/a\ os.system\(f\"""sed -i -e ''\"s/di
|
|
23 |
RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
|
24 |
RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
|
25 |
|
26 |
-
# ----------------------------Delete this block if you don't want to see the extra header----------------------------
|
27 |
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
|
28 |
RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
29 |
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
|
30 |
RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
31 |
-
# -------------------------------------------------------------------------------------------------------------------
|
32 |
|
33 |
-
|
34 |
-
RUN
|
35 |
-
RUN
|
36 |
-
RUN
|
37 |
-
RUN
|
38 |
-
RUN
|
|
|
|
|
|
|
39 |
|
40 |
-
|
41 |
-
|
|
|
|
|
42 |
|
43 |
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
|
44 |
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
|
45 |
|
46 |
EXPOSE 7860
|
47 |
|
48 |
-
CMD 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
|
|
|
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
|
|
|
23 |
RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
|
24 |
RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
|
25 |
|
|
|
26 |
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
|
27 |
RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
28 |
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/header_patch.py /content/header_patch.py
|
29 |
RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
|
|
30 |
|
31 |
+
RUN sed -i -e '/(modelmerger_interface, \"Checkpoint Merger\", \"modelmerger\"),/d' /content/stable-diffusion-webui/modules/ui.py
|
32 |
+
RUN sed -i -e '/(train_interface, \"Train\", \"ti\"),/d' /content/stable-diffusion-webui/modules/ui.py
|
33 |
+
RUN sed -i -e '/extensions_interface, \"Extensions\", \"extensions\"/d' /content/stable-diffusion-webui/modules/ui.py
|
34 |
+
RUN sed -i -e '/settings_interface, \"Settings\", \"settings\"/d' /content/stable-diffusion-webui/modules/ui.py
|
35 |
+
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
|
36 |
+
RUN sed -i -e 's/ show_progress=False,/ show_progress=True,/g' /content/stable-diffusion-webui/modules/ui.py
|
37 |
+
RUN sed -i -e 's/default_enabled=False/default_enabled=True/g' /content/stable-diffusion-webui/webui.py
|
38 |
+
RUN sed -i -e 's/ outputs=\[/queue=False, &/g' /content/stable-diffusion-webui/modules/ui.py
|
39 |
+
RUN sed -i -e 's/ queue=False, / /g' /content/stable-diffusion-webui/modules/ui.py
|
40 |
|
41 |
+
RUN rm -rfv /content/stable-diffusion-webui/scripts/
|
42 |
+
|
43 |
+
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/shared-config.json /content/shared-config.json
|
44 |
+
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/shared-ui-config.json /content/shared-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 |
|
51 |
+
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
|