mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-02-08 08:34:21 +01:00
auto
This commit is contained in:
parent
42cc17da74
commit
f1b5733721
|
|
@ -35,6 +35,7 @@ services:
|
||||||
<<: *base_service
|
<<: *base_service
|
||||||
profiles: ["auto"]
|
profiles: ["auto"]
|
||||||
build: ./services/AUTOMATIC1111
|
build: ./services/AUTOMATIC1111
|
||||||
|
image: sd-auto:1
|
||||||
environment:
|
environment:
|
||||||
- CLI_ARGS=--allow-code --medvram --xformers
|
- CLI_ARGS=--allow-code --medvram --xformers
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,15 +57,15 @@ RUN apt-get install jq moreutils -y
|
||||||
# Note: don't update the sha of previous versions because the install will take forever
|
# Note: don't update the sha of previous versions because the install will take forever
|
||||||
# instead, update the repo state in a later step
|
# instead, update the repo state in a later step
|
||||||
|
|
||||||
ARG SHA=36a0ba357ab0742c3c4a28437b68fb29a235afbe
|
ARG SHA=f49c08ea566385db339c6628f65c3a121033f67c
|
||||||
RUN <<EOF
|
RUN <<EOF
|
||||||
cd stable-diffusion-webui
|
cd stable-diffusion-webui
|
||||||
git pull --rebase
|
git pull --rebase
|
||||||
git reset --hard ${SHA}
|
git reset --hard ${SHA}
|
||||||
pip install --prefer-binary --no-cache-dir -r requirements_versions.txt
|
pip install -r requirements_versions.txt
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
RUN pip install --prefer-binary --no-cache-dir opencv-python-headless \
|
RUN pip install opencv-python-headless \
|
||||||
git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 \
|
git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 \
|
||||||
git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1 \
|
git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1 \
|
||||||
pyngrok
|
pyngrok
|
||||||
|
|
@ -84,4 +84,4 @@ WORKDIR ${WORKDIR}
|
||||||
EXPOSE 7860
|
EXPOSE 7860
|
||||||
# run, -u to not buffer stdout / stderr
|
# run, -u to not buffer stdout / stderr
|
||||||
CMD /docker/mount.sh && \
|
CMD /docker/mount.sh && \
|
||||||
python3 -u ../../webui.py --listen --port 7860 --ckpt-dir ${ROOT}/models/Stable-diffusion ${CLI_ARGS}
|
python3 -u ../../webui.py --listen --port 7860 --ckpt-dir ${ROOT}/models/Stable-diffusion --theme dark ${CLI_ARGS}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue