Spaces:
Running
Running
Download Dockerfile from remsky/FastKoko: direct link, hf CLI and curl.
- Browser
- Download file 747 Bytes
-
https://huggingface.co/spaces/remsky/FastKoko/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/remsky/FastKoko/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/remsky/FastKoko/resolve/main/Dockerfile
747 Bytes
| FROM ghcr.io/remsky/kokoro-fastapi-cpu:v0.9.2 | |
| # 2 vCPU Space: keep torch from oversubscribing threads | |
| ENV OMP_NUM_THREADS=2 | |
| ENV MKL_NUM_THREADS=2 | |
| # Default is DEBUG | |
| ENV API_LOG_LEVEL=INFO | |
| ENV DEFAULT_VOICE=af_jadzia | |
| # Public box: avoid requests with a minute of silence | |
| ENV MAX_PAUSE_DURATION_S=10 | |
| # Default cap of 3 evicts finished files mid stream-to-file swap; size/age caps still bound disk | |
| ENV MAX_TEMP_DIR_COUNT=100 | |
| # Voice tuning tab, tune and download only: saving writes into VOICES_DIR on a public box | |
| ENV ENABLE_INNO_TUNER=true | |
| ENV ALLOW_LOCAL_VOICE_SAVING=false | |
| # Root redirect to the bundled web player | |
| COPY hf_app.py /app/hf_app.py | |
| EXPOSE 8880 | |
| CMD ["python", "-m", "uvicorn", "hf_app:app", "--host", "0.0.0.0", "--port", "8880"] |