ataberkkilavuzcu commited on
Commit
2127bdd
·
1 Parent(s): 41dd8e5
Files changed (1) hide show
  1. Dockerfile +11 -2
Dockerfile CHANGED
@@ -4,14 +4,23 @@ ENV PYTHONUNBUFFERED=1 \
4
  PIP_NO_CACHE_DIR=1 \
5
  HF_HOME=/data/cache
6
 
7
- RUN apt-get update
 
 
 
 
 
 
 
8
 
9
  WORKDIR /app
10
 
11
  COPY requirements.txt ./
12
- RUN pip install --upgrade pip && pip install -r requirements.txt
 
13
 
14
  COPY app.py ./
15
 
16
  ENV PORT=7860
 
17
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
4
  PIP_NO_CACHE_DIR=1 \
5
  HF_HOME=/data/cache
6
 
7
+ # System dependencies required by TTS/XTTS for audio processing
8
+ RUN apt-get update \
9
+ && apt-get install -y --no-install-recommends \
10
+ ffmpeg \
11
+ libsndfile1 \
12
+ espeak-ng \
13
+ git \
14
+ && rm -rf /var/lib/apt/lists/*
15
 
16
  WORKDIR /app
17
 
18
  COPY requirements.txt ./
19
+ RUN pip install --upgrade pip \
20
+ && pip install --no-cache-dir -r requirements.txt
21
 
22
  COPY app.py ./
23
 
24
  ENV PORT=7860
25
+ EXPOSE 7860
26
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]