Markuspierre commited on
Commit
4098cdb
·
verified ·
1 Parent(s): d9000ea

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +32 -0
Dockerfile ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Dépendances système
6
+ RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ git \
8
+ gcc \
9
+ libsndfile1 \
10
+ ca-certificates \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+
14
+ RUN apt-get update && apt-get install -y ffmpeg
15
+
16
+ # Copier requirements en premier pour profiter du cache Docker
17
+ COPY requirements.txt .
18
+
19
+ # Installer torch depuis le wheel officiel
20
+ RUN pip install --no-cache-dir torch==2.9.0 --index-url https://download.pytorch.org/whl/cpu
21
+
22
+ RUN pip install git+https://github.com/huggingface/parler-tts.git
23
+
24
+
25
+ # Installer les autres dépendances
26
+ RUN pip install --no-cache-dir -r requirements.txt
27
+
28
+ COPY . .
29
+
30
+ EXPOSE 7860
31
+
32
+ CMD ["python", "asr-tts_service.py"]