indextts2-api / Dockerfile
ataberkkilavuzcu's picture
fix
2127bdd
raw
history blame
578 Bytes
FROM python:3.10-slim
ENV PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
HF_HOME=/data/cache
# System dependencies required by TTS/XTTS for audio processing
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ffmpeg \
libsndfile1 \
espeak-ng \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt ./
RUN pip install --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
COPY app.py ./
ENV PORT=7860
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]