kokoro-tts-B / Dockerfile
Bluestrikeai's picture
Create Dockerfile
31934c2 verified
Raw History Blame Contribute Delete
590 Bytes
FROM python:3.10-slim
# Install system dependencies required for Kokoro (espeak-ng) and phonemizer
RUN apt-get update && apt-get install -y \
espeak-ng \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Download model weights implicitly via the Kokoro package during first run
# or explicit copy if you have downloaded them locally.
COPY . .
# Expose standard Hugging Face Space port
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]