File size: 352 Bytes
5995724
8d3e588
5995724
8d3e588
5995724
 
 
1
2
3
4
5
6
7
8
FROM python:3.10-slim
RUN apt-get update && apt-get install -y espeak-ng libsndfile1 ffmpeg && rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN pip install --no-cache-dir fastapi uvicorn[standard] transformers torch accelerate kokoro>=0.9.2 soundfile numpy websockets
COPY . .
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]