Download Dockerfile from Yash030/stt-model: direct link, hf CLI and curl.
- Browser
- Download file 501 Bytes
-
https://huggingface.co/spaces/Yash030/stt-model/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Yash030/stt-model/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Yash030/stt-model/resolve/main/Dockerfile
501 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # System deps: portaudio for PyAudio, ffmpeg for audio conversion | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| portaudio19-dev python3-dev ffmpeg build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| ENV STT_MODEL=tiny | |
| ENV STT_DEVICE=cpu | |
| ENV STT_LANGUAGE=en | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |