crackuser commited on
Commit
d35b005
·
verified ·
1 Parent(s): 8ffb789

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -1
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install system dependencies for audio processing
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  curl \
@@ -10,6 +10,10 @@ RUN apt-get update && apt-get install -y \
10
  libsndfile1 \
11
  ffmpeg \
12
  libavcodec-extra \
 
 
 
 
13
  && apt-get clean \
14
  && rm -rf /var/lib/apt/lists/*
15
 
@@ -18,6 +22,9 @@ COPY requirements.txt .
18
  RUN pip install --no-cache-dir --upgrade pip
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
 
 
 
21
  # Copy application
22
  COPY . .
23
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies for audio processing and TTS
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  curl \
 
10
  libsndfile1 \
11
  ffmpeg \
12
  libavcodec-extra \
13
+ espeak \
14
+ espeak-data \
15
+ libespeak1 \
16
+ libespeak-dev \
17
  && apt-get clean \
18
  && rm -rf /var/lib/apt/lists/*
19
 
 
22
  RUN pip install --no-cache-dir --upgrade pip
23
  RUN pip install --no-cache-dir -r requirements.txt
24
 
25
+ # Pre-download TTS models to speed up first run
26
+ RUN python -c "from TTS.api import TTS; TTS('tts_models/multilingual/multi-dataset/xtts_v2')"
27
+
28
  # Copy application
29
  COPY . .
30