Spaces:
Sleeping
Sleeping
File size: 1,138 Bytes
5f0a2ac | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | 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"]
|