File size: 720 Bytes
4098cdb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
28
29
30
31
32
33
FROM python:3.11-slim

WORKDIR /app

# Dépendances système
RUN apt-get update && apt-get install -y --no-install-recommends \
    git \
    gcc \
    libsndfile1 \
    ca-certificates \
    && rm -rf /var/lib/apt/lists/*

    
RUN apt-get update && apt-get install -y ffmpeg

# Copier requirements en premier pour profiter du cache Docker
COPY requirements.txt .

# Installer torch depuis le wheel officiel 
RUN pip install --no-cache-dir torch==2.9.0 --index-url https://download.pytorch.org/whl/cpu

RUN pip install git+https://github.com/huggingface/parler-tts.git


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

COPY . .

EXPOSE 7860

CMD ["python", "asr-tts_service.py"]