Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| ENV DEBIAN_FRONTEND=noninteractive \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| HF_HOME=/data/.huggingface \ | |
| VOICE_LAB_HOST=0.0.0.0 \ | |
| VOICE_LAB_PORT=7860 | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| bash \ | |
| build-essential \ | |
| ffmpeg \ | |
| git \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY . /app/ | |
| RUN python -m pip install --upgrade pip && \ | |
| python -m pip install --no-cache-dir -e . --no-deps && \ | |
| python -m pip install --no-cache-dir --upgrade \ | |
| torch \ | |
| ctranslate2 \ | |
| fastapi \ | |
| "uvicorn[standard]" \ | |
| numpy \ | |
| scipy \ | |
| httpx \ | |
| pydantic-settings \ | |
| faster-whisper \ | |
| soundfile \ | |
| silero-vad \ | |
| onnxruntime \ | |
| transformers \ | |
| accelerate \ | |
| sentencepiece \ | |
| safetensors \ | |
| kokoro && \ | |
| python -m pip install --no-cache-dir --upgrade \ | |
| "nemo_toolkit[asr]" && \ | |
| python -c "import onnxruntime, nemo.collections.asr; print('verified onnxruntime+nemo')" | |
| EXPOSE 7860 | |
| CMD ["/bin/bash", "/app/start.sh"] | |