Cleaning up docker files for sdnext and comfyui

This commit is contained in:
eleiton
2025-06-06 23:00:38 +02:00
parent a0fd6a46ac
commit 2ce7a0224a
2 changed files with 14 additions and 12 deletions

View File

@@ -1,16 +1,17 @@
FROM intel/intel-extension-for-pytorch:2.7.10-xpu
# set paths to use with sdnext
# Set paths to use with sdnext
ENV SD_DATADIR="/mnt/data"
ENV SD_MODELSDIR="/mnt/models"
# git clone and start sdnext
# Download the SDNext repository
RUN echo '#!/bin/bash\ngit status || git clone https://github.com/vladmandic/sdnext.git .\npython /app/launch.py "$@"' | tee /bin/startup.sh
# Make the startup script executable
RUN chmod 755 /bin/startup.sh
# run sdnext
# Set the working directory to /app
WORKDIR /app
ENTRYPOINT [ "startup.sh", "-f", "--use-ipex", "--uv", "--listen", "--debug", "--api-log", "--log", "sdnext.log" ]
# stop signal
STOPSIGNAL SIGINT
# Run SDNext with custom parameters
CMD [ "startup.sh", "-f", "--use-ipex", "--uv", "--listen", "--debug", "--api-log", "--log", "sdnext.log" ]