From ffafe50ca49ca7e92953528db7839aa580aac313 Mon Sep 17 00:00:00 2001 From: eleiton Date: Mon, 9 Jun 2025 20:41:04 +0200 Subject: [PATCH] Using heredoc in docker files. --- comfyui/Dockerfile | 7 ++++++- docker-compose.yml | 1 - sdnext/Dockerfile | 6 +++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/comfyui/Dockerfile b/comfyui/Dockerfile index 81a74f9..013ba17 100644 --- a/comfyui/Dockerfile +++ b/comfyui/Dockerfile @@ -6,7 +6,12 @@ RUN apt-get update && \ ENV LD_PRELOAD=libjemalloc.so.2 # Download the ComfyUI repository -RUN echo '#!/bin/bash\ngit status || git clone https://github.com/comfyanonymous/ComfyUI.git /app \npip install -r /app/requirements.txt \npython /app/main.py "$@"' | tee /bin/startup.sh +RUN cat < /bin/startup.sh +#!/bin/bash +git status || git clone https://github.com/comfyanonymous/ComfyUI.git /app +pip install -r /app/requirements.txt +python /app/main.py "\$@" +EOF # Make the startup script executable RUN chmod 755 /bin/startup.sh diff --git a/docker-compose.yml b/docker-compose.yml index 59482eb..04e2fbc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,3 @@ -version: '3' services: ollama-intel-arc: image: intelanalytics/ipex-llm-inference-cpp-xpu:latest diff --git a/sdnext/Dockerfile b/sdnext/Dockerfile index ca692b6..0f9d56e 100644 --- a/sdnext/Dockerfile +++ b/sdnext/Dockerfile @@ -5,7 +5,11 @@ ENV SD_DATADIR="/mnt/data" ENV SD_MODELSDIR="/mnt/models" # 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 +RUN cat < /bin/startup.sh +#!/bin/bash +git status || git clone https://github.com/vladmandic/sdnext.git . +python /app/launch.py "\$@" +EOF # Make the startup script executable RUN chmod 755 /bin/startup.sh