Actualiser dockerfile.txt
This commit is contained in:
@ -1,9 +1,10 @@
|
||||
FROM nvcr.io/nvidia/pytorch:26.01-py3
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# 1. Système + SSH (La survie)
|
||||
# 1. Système + SSH + Dépendances de rendu (zstd, libgl, libglib)
|
||||
RUN apt-get update && apt-get install -y \
|
||||
openssh-server ffmpeg libsndfile1 sox git curl \
|
||||
openssh-server ffmpeg libsndfile1 sox git curl zstd \
|
||||
libgl1-mesa-glx libglib2.0-0 \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Config SSH pour root (nécessaire pour Vast.ai)
|
||||
@ -28,7 +29,7 @@ RUN git clone https://github.com/comfyanonymous/ComfyUI.git && \
|
||||
RUN mkdir -p /root/audiocraft-api
|
||||
COPY server.py /root/audiocraft-api/server.py
|
||||
|
||||
# 5. Nouveau script de démarrage Robuste
|
||||
# 5. Script de démarrage avec redirection des logs et sleep infinity
|
||||
RUN echo '#!/bin/bash\n\
|
||||
service ssh start\n\
|
||||
ollama serve > /root/ollama.log 2>&1 & \n\
|
||||
|
||||
Reference in New Issue
Block a user