urdu-asr-whisper / Dockerfile
v-e-n-o-m's picture
Increase transcribe timeout, add chunking and duration check
8542679
raw
history blame contribute delete
512 Bytes
FROM python:3.10-slim
RUN apt-get update && apt-get install -y \
ffmpeg \
libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
HF_HOME=/home/user/.cache/huggingface
WORKDIR $HOME/app
COPY requirements.txt .
RUN pip install --no-cache-dir --user -r requirements.txt
COPY app.py .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1", "--log-level", "debug"]