FROM python:3.10-slim WORKDIR /code # Install light system audio processing requirements RUN apt-get update && apt-get install -y ffmpeg libsndfile1 git && rm -rf /var/lib/apt/lists/* # Clean install configuration for fast pure-Kokoro compilation RUN pip install --no-cache-dir fastapi uvicorn kokoro soundfile COPY . . # Run the API server with 4 concurrent worker processes CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "4", "--loop", "asyncio"]