stt-model / Dockerfile
Yash030's picture
Initial deploy: faster-whisper FastAPI server
0e2e8ef
Raw
History Blame Contribute Delete
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"]