Update Dockerfile
Browse files- Dockerfile +5 -10
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
# Dockerfile Private
|
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
|
@@ -7,12 +7,11 @@ ENV DEBIAN_FRONTEND noninteractive
|
|
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.
|
11 |
RUN pip install --pre triton
|
12 |
RUN pip install numexpr
|
13 |
|
14 |
-
RUN git clone
|
15 |
-
RUN 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.py
|
16 |
RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
|
17 |
RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
|
18 |
|
@@ -24,19 +23,15 @@ RUN sed -i -e '/demo:/r /content/header_patch.py' /content/stable-diffusion-webu
|
|
24 |
# -------------------------------------------------------------------------------------------------------------------
|
25 |
|
26 |
ADD https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py
|
27 |
-
RUN git clone https://github.com/
|
28 |
RUN git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
|
29 |
RUN git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
|
30 |
-
RUN git clone https://github.com/Vetchems/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser
|
31 |
-
RUN git clone https://github.com/camenduru/stable-diffusion-webui-artists-to-study /content/stable-diffusion-webui/extensions/stable-diffusion-webui-artists-to-study
|
32 |
|
33 |
COPY config.json /content/config.json
|
34 |
COPY ui-config.json /content/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 |
-
ADD https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt /content/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.ckpt
|
39 |
-
ADD https://huggingface.co/datasets/Nerfgun3/bad_prompt/resolve/main/bad_prompt_version2.pt /content/stable-diffusion-webui/embeddings/bad_prompt_version2.pt
|
40 |
|
41 |
RUN adduser --disabled-password --gecos '' user
|
42 |
RUN chown -R user:user /content
|
@@ -45,4 +40,4 @@ USER user
|
|
45 |
|
46 |
EXPOSE 7860
|
47 |
|
48 |
-
CMD cd /content/stable-diffusion-webui && python webui.py --
|
|
|
1 |
+
# Dockerfile Private Nightly CPU
|
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
|
|
|
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
|
|
|
15 |
RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
|
16 |
RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
|
17 |
|
|
|
23 |
# -------------------------------------------------------------------------------------------------------------------
|
24 |
|
25 |
ADD https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py
|
26 |
+
RUN git clone https://github.com/deforum-art/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
|
27 |
RUN git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
|
28 |
RUN git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
|
|
|
|
|
29 |
|
30 |
COPY config.json /content/config.json
|
31 |
COPY ui-config.json /content/ui-config.json
|
32 |
|
33 |
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
|
34 |
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
|
|
|
|
|
35 |
|
36 |
RUN adduser --disabled-password --gecos '' user
|
37 |
RUN chown -R user:user /content
|
|
|
40 |
|
41 |
EXPOSE 7860
|
42 |
|
43 |
+
CMD cd /content/stable-diffusion-webui && python webui.py --use-cpu all --no-half --listen --disable-console-progressbars --no-progressbar-hiding --ui-config-file /content/ui-config.json --ui-settings-file /content/config.json
|