Actualiser dockerfile.txt

This commit is contained in:
2026-02-23 18:28:38 +00:00
parent 9249348751
commit c27b74d75c

View File

@ -24,11 +24,18 @@ RUN git clone https://github.com/comfyanonymous/ComfyUI.git && \
RUN mkdir -p /root/audiocraft-api RUN mkdir -p /root/audiocraft-api
COPY server.py /root/audiocraft-api/server.py COPY server.py /root/audiocraft-api/server.py
# 5. La solution 1-Click : Tout lancer d'un coup sans script externe foireux # 5. Script de démarrage robuste (Heredoc sans erreur de syntaxe)
EXPOSE 22 3000 7860 8188 11434 RUN cat <<'EOF' > /start.sh
#!/bin/bash
service ssh start
ollama serve > /root/ollama.log 2>&1 &
open-webui serve --port 3000 > /root/webui.log 2>&1 &
python3 /root/ComfyUI/main.py --listen 0.0.0.0 --port 8188 > /root/comfy.log 2>&1 &
python3 /root/audiocraft-api/server.py > /root/audio.log 2>&1 &
echo "Studio Ready"
sleep infinity
EOF
RUN chmod +x /start.sh
CMD ollama serve > /root/ollama.log 2>&1 & \ EXPOSE 22 3000 7860 8188 11434
open-webui serve --port 3000 > /root/webui.log 2>&1 & \ ENTRYPOINT ["/bin/bash", "/start.sh"]
python3 /root/ComfyUI/main.py --listen 0.0.0.0 --port 8188 > /root/comfy.log 2>&1 & \
python3 /root/audiocraft-api/server.py > /root/audio.log 2>&1 & \
sleep infinity