Dockerfile cleanup
Browse files- Dockerfile +26 -13
Dockerfile
CHANGED
|
@@ -11,18 +11,18 @@ RUN apt-get update -y \
|
|
| 11 |
&& apt-get install -y \
|
| 12 |
libgl1 \
|
| 13 |
libglib2.0-0 \
|
| 14 |
-
procps \
|
| 15 |
curl \
|
| 16 |
vim \
|
| 17 |
-
libreadline8 \
|
| 18 |
-
bzip2 \
|
| 19 |
wget \
|
| 20 |
git \
|
| 21 |
git-lfs \
|
| 22 |
tzdata \
|
| 23 |
-
psmisc \
|
| 24 |
bash \
|
| 25 |
ca-certificates \
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
netbase \
|
| 27 |
openssh-client \
|
| 28 |
libsqlite3-dev \
|
|
@@ -79,21 +79,34 @@ WORKDIR /app
|
|
| 79 |
COPY --chown=user:user pyproject.toml poetry.lock /app/
|
| 80 |
RUN poetry install
|
| 81 |
|
| 82 |
-
# WebUI
|
| 83 |
-
RUN git clone
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
RUN git clone
|
| 88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
&& mkdir -p /app/stable-diffusion-webui/extensions/sd-webui-additional-networks/models/LoRA
|
|
|
|
|
|
|
| 90 |
RUN git clone https://github.com/Mikubill/sd-webui-controlnet /app/stable-diffusion-webui/extensions/sd-webui-controlnet \
|
| 91 |
&& (cd /app/stable-diffusion-webui/extensions/sd-webui-controlnet && git checkout 5c74f300c3ac04323963af80dd2b971a7c2b2b29) \
|
| 92 |
&& mkdir -p /app/stable-diffusion-webui/models/ControlNet
|
| 93 |
|
| 94 |
# Prepare WebUI environment
|
| 95 |
WORKDIR /app/stable-diffusion-webui
|
| 96 |
-
COPY --chown=user:user config.json ui-config.json /app/stable-diffusion-webui/
|
| 97 |
RUN /opt/venv/bin/python launch.py --exit --skip-torch-cuda-test --xformers
|
| 98 |
|
| 99 |
# Patch WebUI
|
|
@@ -103,7 +116,7 @@ RUN sed -i -e 's/ outputs=\[/queue=False, &/g' modules/ui.py
|
|
| 103 |
RUN sed -i -e 's/ queue=False, / /g' modules/ui.py
|
| 104 |
|
| 105 |
# Copy startup scripts
|
| 106 |
-
COPY --chown=user:user run.py on_start.sh /app/stable-diffusion-webui/
|
| 107 |
RUN chmod +x on_start.sh
|
| 108 |
|
| 109 |
EXPOSE 7860
|
|
|
|
| 11 |
&& apt-get install -y \
|
| 12 |
libgl1 \
|
| 13 |
libglib2.0-0 \
|
|
|
|
| 14 |
curl \
|
| 15 |
vim \
|
|
|
|
|
|
|
| 16 |
wget \
|
| 17 |
git \
|
| 18 |
git-lfs \
|
| 19 |
tzdata \
|
|
|
|
| 20 |
bash \
|
| 21 |
ca-certificates \
|
| 22 |
+
libreadline8 \
|
| 23 |
+
bzip2 \
|
| 24 |
+
psmisc \
|
| 25 |
+
procps \
|
| 26 |
netbase \
|
| 27 |
openssh-client \
|
| 28 |
libsqlite3-dev \
|
|
|
|
| 79 |
COPY --chown=user:user pyproject.toml poetry.lock /app/
|
| 80 |
RUN poetry install
|
| 81 |
|
| 82 |
+
# AUTOMATIC1111' WebUI
|
| 83 |
+
RUN git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui /app/stable-diffusion-webui \
|
| 84 |
+
&& (cd /app/stable-diffusion-webui && git checkout 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8)
|
| 85 |
+
|
| 86 |
+
# Deforum extension
|
| 87 |
+
RUN git clone https://github.com/deforum-art/deforum-for-automatic1111-webui /app/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui \
|
| 88 |
+
&& (cd /app/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui && git checkout b60d999202f0fd2b386150d0938c43e639db8643)
|
| 89 |
+
|
| 90 |
+
# Images Browser WebUI extension
|
| 91 |
+
RUN git clone -b v2.0 https://github.com/yfszzx/stable-diffusion-webui-images-browser /app/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser \
|
| 92 |
+
&& (cd /app/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser && git checkout a42c7a30181636a05815e62426d5eff4d3340529)
|
| 93 |
+
|
| 94 |
+
# CiviTAI Browser WebUI extension
|
| 95 |
+
RUN git clone -b v2.0 https://github.com/Vetchems/sd-civitai-browser /app/stable-diffusion-webui/extensions/sd-civitai-browser \
|
| 96 |
+
&& (cd /app/stable-diffusion-webui/extensions/sd-civitai-browser && git checkout b25a5daf7df3f6340d3e243d533228d8ade5288d)
|
| 97 |
+
|
| 98 |
+
# Additional Networks WebUI extension
|
| 99 |
+
RUN git clone -b v1.6 https://github.com/kohya-ss/sd-webui-additional-networks /app/stable-diffusion-webui/extensions/sd-webui-additional-networks \
|
| 100 |
+
&& (cd /app/stable-diffusion-webui/extensions/sd-webui-additional-networks && git checkout 822f2136fa6d63b85663597b03ef3edafab01187) \
|
| 101 |
&& mkdir -p /app/stable-diffusion-webui/extensions/sd-webui-additional-networks/models/LoRA
|
| 102 |
+
|
| 103 |
+
# ControlNet WebUI extension
|
| 104 |
RUN git clone https://github.com/Mikubill/sd-webui-controlnet /app/stable-diffusion-webui/extensions/sd-webui-controlnet \
|
| 105 |
&& (cd /app/stable-diffusion-webui/extensions/sd-webui-controlnet && git checkout 5c74f300c3ac04323963af80dd2b971a7c2b2b29) \
|
| 106 |
&& mkdir -p /app/stable-diffusion-webui/models/ControlNet
|
| 107 |
|
| 108 |
# Prepare WebUI environment
|
| 109 |
WORKDIR /app/stable-diffusion-webui
|
|
|
|
| 110 |
RUN /opt/venv/bin/python launch.py --exit --skip-torch-cuda-test --xformers
|
| 111 |
|
| 112 |
# Patch WebUI
|
|
|
|
| 116 |
RUN sed -i -e 's/ queue=False, / /g' modules/ui.py
|
| 117 |
|
| 118 |
# Copy startup scripts
|
| 119 |
+
COPY --chown=user:user run.py on_start.sh config.json ui-config.json /app/stable-diffusion-webui/
|
| 120 |
RUN chmod +x on_start.sh
|
| 121 |
|
| 122 |
EXPOSE 7860
|