ataberkkilavuzcu commited on
Commit
9cf6a70
·
verified ·
1 Parent(s): d2070e3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -16
Dockerfile CHANGED
@@ -2,29 +2,23 @@ FROM python:3.10-slim
2
 
3
  ENV PYTHONUNBUFFERED=1 \
4
  PIP_NO_CACHE_DIR=1 \
5
- HF_HOME=/data/cache
 
6
 
7
- # System dependencies required by TTS/XTTS for audio processing and building
8
- RUN apt-get update \
9
- && apt-get install -y --no-install-recommends \
10
- ffmpeg \
11
- libsndfile1 \
12
- espeak-ng \
13
- git \
14
- gcc \
15
- g++ \
16
- make \
17
- python3-dev \
18
- && rm -rf /var/lib/apt/lists/*
19
 
20
  WORKDIR /app
21
 
22
  COPY requirements.txt ./
23
- RUN pip install --upgrade pip \
24
- && pip install --no-cache-dir -r requirements.txt
25
 
26
  COPY app.py ./
27
 
28
  ENV PORT=7860
29
- EXPOSE 7860
30
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  ENV PYTHONUNBUFFERED=1 \
4
  PIP_NO_CACHE_DIR=1 \
5
+ HF_HOME=/data/cache \
6
+ MODEL_DIR=/data/indextts2
7
 
8
+ # System deps (ffmpeg required for audio processing, git for IndexTTS2 install)
9
+ RUN apt-get update && apt-get install -y --no-install-recommends \
10
+ ffmpeg git curl ca-certificates && \
11
+ rm -rf /var/lib/apt/lists/*
12
+
13
+ # Create model directory
14
+ RUN mkdir -p /data/indextts2
 
 
 
 
 
15
 
16
  WORKDIR /app
17
 
18
  COPY requirements.txt ./
19
+ RUN pip install --upgrade pip && pip install -r requirements.txt
 
20
 
21
  COPY app.py ./
22
 
23
  ENV PORT=7860
 
24
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]