Add startup script for comfy (#552)
Closes #451 --------- Co-authored-by: PassiveLemon <lemonl3mn@protonmail.com>
This commit is contained in:
@ -60,7 +60,7 @@ services:
|
|||||||
<<: *base_service
|
<<: *base_service
|
||||||
profiles: ["comfy"]
|
profiles: ["comfy"]
|
||||||
build: ./services/comfy/
|
build: ./services/comfy/
|
||||||
image: sd-comfy:3
|
image: sd-comfy:4
|
||||||
environment:
|
environment:
|
||||||
- CLI_ARGS=
|
- CLI_ARGS=
|
||||||
|
|
||||||
|
@ -34,6 +34,8 @@ RUN --mount=type=cache,target=/root/.cache/pip \
|
|||||||
# add info
|
# add info
|
||||||
COPY . /docker/
|
COPY . /docker/
|
||||||
RUN cp /docker/extra_model_paths.yaml ${ROOT}
|
RUN cp /docker/extra_model_paths.yaml ${ROOT}
|
||||||
|
RUN chmod u+x /docker/entrypoint.sh
|
||||||
|
RUN cp /docker/extra_model_paths.yaml ${ROOT}
|
||||||
|
|
||||||
ENV NVIDIA_VISIBLE_DEVICES=all
|
ENV NVIDIA_VISIBLE_DEVICES=all
|
||||||
ENV PYTHONPATH="${PYTHONPATH}:${PWD}" CLI_ARGS=""
|
ENV PYTHONPATH="${PYTHONPATH}:${PWD}" CLI_ARGS=""
|
||||||
|
@ -22,4 +22,10 @@ for to_path in "${!MOUNTS[@]}"; do
|
|||||||
echo Mounted $(basename "${from_path}")
|
echo Mounted $(basename "${from_path}")
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ -f "/data/config/comfy/startup.sh" ]; then
|
||||||
|
pushd ${ROOT}
|
||||||
|
. /data/config/comfy/startup.sh
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
Reference in New Issue
Block a user