mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-03-21 12:34:46 +01:00
Simplified requirement installing, startup.sh
This commit is contained in:
parent
17c44cabcb
commit
89092c1d47
|
|
@ -7,7 +7,7 @@ FROM python:3.10.9-slim
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1
|
ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y git aria2 && apt-get clean
|
RUN apt-get update && apt-get install -y git aria2 build-essential && apt-get clean
|
||||||
|
|
||||||
RUN --mount=type=cache,target=/cache --mount=type=cache,target=/root/.cache/pip \
|
RUN --mount=type=cache,target=/cache --mount=type=cache,target=/root/.cache/pip \
|
||||||
aria2c -x 5 --dir /cache --out torch-2.0.0-cp310-cp310-linux_x86_64.whl -c \
|
aria2c -x 5 --dir /cache --out torch-2.0.0-cp310-cp310-linux_x86_64.whl -c \
|
||||||
|
|
|
||||||
|
|
@ -44,16 +44,16 @@ for to_path in "${!MOUNTS[@]}"; do
|
||||||
echo Mounted $(basename "${from_path}")
|
echo Mounted $(basename "${from_path}")
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$(ls -A /stable-diffusion/custom_nodes)" ]; then
|
if [ -f "/data/config/comfy/startup.sh" ]; then
|
||||||
chmod 777 -R "/stable-diffusion/custom_nodes/"
|
pushd ${ROOT}
|
||||||
apt-get install build-essential -y
|
. /data/config/comfy/startup.sh
|
||||||
for dir in "/stable-diffusion/custom_nodes/*"; do
|
popd
|
||||||
if [ -e "$dir/requirements.txt" ]; then
|
|
||||||
echo $dir
|
|
||||||
cd $dir
|
|
||||||
pip install -r requirements.txt
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
shopt -s nullglob
|
||||||
|
list=(${ROOT}/custom_nodes/*/requirements.txt)
|
||||||
|
for req in "${list[@]}"; do
|
||||||
|
pip install -r "$req"
|
||||||
|
done
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue