FROM python:3.12-slim WORKDIR /app RUN apt-get update && apt-get install -y wget && apt-get clean RUN wget -O kokoro-v1.0.onnx https://github.com/thewh1teagle/kokoro-onnx/releases/download/model-files-v1.0/kokoro-v1.0.onnx RUN wget -O voices-v1.0.bin https://github.com/thewh1teagle/kokoro-onnx/releases/download/model-files-v1.0/voices-v1.0.bin COPY . /app RUN pip install --no-cache-dir -r requirements.txt EXPOSE 7860 CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "main:app"]