Spaces:
Sleeping
Sleeping
Download Dockerfile from Bluestrikeai/kokoro-tts-B: direct link, hf CLI and curl.
- Browser
- Download file 590 Bytes
-
https://huggingface.co/spaces/Bluestrikeai/kokoro-tts-B/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Bluestrikeai/kokoro-tts-B/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Bluestrikeai/kokoro-tts-B/resolve/main/Dockerfile
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"] |