File tree Expand file tree Collapse file tree 4 files changed +16
-5
lines changed
Expand file tree Collapse file tree 4 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 22
33set -Eeuo pipefail
44
5- find . -name " *.sh" -exec git update-index --chmod=+x {} \;
5+ find services -name " *.sh" -exec git update-index --chmod=+x {} \;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ services:
3636 << : *base_service
3737 profiles : ["auto"]
3838 build : ./services/AUTOMATIC1111
39- image : sd-auto:6
39+ image : sd-auto:7
4040 environment :
4141 - CLI_ARGS=--allow-code --medvram --xformers
4242
Original file line number Diff line number Diff line change @@ -80,11 +80,11 @@ RUN pip install opencv-python-headless \
8080
8181COPY . /docker
8282
83- RUN chmod +x /docker/mount .sh && python3 /docker/info.py ${ROOT}/modules/ui.py
83+ RUN chmod +x /docker/entrypoint .sh && python3 /docker/info.py ${ROOT}/modules/ui.py
8484
8585WORKDIR ${ROOT}/repositories/stable-diffusion
8686ENV CLI_ARGS=""
8787EXPOSE 7860
88+ ENTRYPOINT ["/docker/entrypoint.sh" ]
8889# run, -u to not buffer stdout / stderr
89- CMD /docker/mount.sh && \
90- python3 -u ../../webui.py --listen --port 7860 --ckpt-dir ${ROOT}/models/Stable-diffusion --theme dark ${CLI_ARGS}
90+ CMD python3 -u ../../webui.py --listen --port 7860 --ckpt-dir ${ROOT}/models/Stable-diffusion --theme dark ${CLI_ARGS}
Original file line number Diff line number Diff line change 22
33set -Eeuo pipefail
44
5+ # TODO: move all mkdir -p ?
56mkdir -p /data/config/auto/scripts/
67cp -n /docker/config.json /data/config/auto/config.json
78jq ' . * input' /data/config/auto/config.json /docker/config.json | sponge /data/config/auto/config.json
@@ -32,6 +33,7 @@ MOUNTS["${ROOT}/models/hypernetworks"]="/data/Hypernetworks"
3233MOUNTS[" ${ROOT} /embeddings" ]=" /data/embeddings"
3334MOUNTS[" ${ROOT} /config.json" ]=" /data/config/auto/config.json"
3435MOUNTS[" ${ROOT} /ui-config.json" ]=" /data/config/auto/ui-config.json"
36+ MOUNTS[" ${ROOT} /extensions" ]=" /data/config/auto/extensions"
3537
3638# extra hacks
3739MOUNTS[" ${ROOT} /repositories/CodeFormer/weights/facelib" ]=" /data/.cache"
@@ -49,3 +51,12 @@ for to_path in "${!MOUNTS[@]}"; do
4951done
5052
5153mkdir -p /output/saved /output/txt2img-images/ /output/img2img-images /output/extras-images/ /output/grids/ /output/txt2img-grids/ /output/img2img-grids/
54+
55+ if [ -f " /data/config/auto/startup.sh" ]; then
56+ pushd ${ROOT}
57+ . /data/config/auto/startup.sh
58+ popd
59+ fi
60+
61+
62+ exec " $@ "
You can’t perform that action at this time.
0 commit comments