FROM python:3.13-slim RUN apt-get update && apt-get install -y --no-install-recommends \ ffmpeg \ && rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir \ pocket-tts \ soundfile \ numpy \ fastapi \ uvicorn WORKDIR /app COPY server.py /app/server.py EXPOSE 7860 HEALTHCHECK --interval=30s --timeout=5s --start-period=120s \ CMD curl -fsS http://localhost:7860/health || exit 1 CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]