File size: 698 Bytes
5c1a0cb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0c51c30
 
5c1a0cb
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:3.11-slim

WORKDIR /app

# Dépendances système pour audio/ffmpeg
RUN apt-get update && apt-get install -y \
    ffmpeg \
    libsndfile1 \
    git \
    && rm -rf /var/lib/apt/lists/*

# Installer les dépendances Python
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Pré-charger le modèle Silero VAD (évite le téléchargement au runtime)
RUN python -c "from livekit.plugins import silero; silero.VAD.load()" || true

# Pré-charger le modèle Whisper medium
RUN python -c "from faster_whisper import WhisperModel; WhisperModel('medium', device='cpu', compute_type='int8')" || true

COPY . .

EXPOSE 7860

CMD ["python", "app.py", "--port", "7860"]