Merge pull request #15 from eleiton/use-heredoc
Fix: Using heredoc in docker files.
This commit is contained in:
@@ -6,7 +6,12 @@ RUN apt-get update && \
|
|||||||
ENV LD_PRELOAD=libjemalloc.so.2
|
ENV LD_PRELOAD=libjemalloc.so.2
|
||||||
|
|
||||||
# Download the ComfyUI repository
|
# 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 <<EOF > /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
|
# Make the startup script executable
|
||||||
RUN chmod 755 /bin/startup.sh
|
RUN chmod 755 /bin/startup.sh
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
version: '3'
|
|
||||||
services:
|
services:
|
||||||
ollama-intel-arc:
|
ollama-intel-arc:
|
||||||
image: intelanalytics/ipex-llm-inference-cpp-xpu:latest
|
image: intelanalytics/ipex-llm-inference-cpp-xpu:latest
|
||||||
|
|||||||
@@ -5,7 +5,11 @@ ENV SD_DATADIR="/mnt/data"
|
|||||||
ENV SD_MODELSDIR="/mnt/models"
|
ENV SD_MODELSDIR="/mnt/models"
|
||||||
|
|
||||||
# Download the SDNext repository
|
# 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 <<EOF > /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
|
# Make the startup script executable
|
||||||
RUN chmod 755 /bin/startup.sh
|
RUN chmod 755 /bin/startup.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user