stt / Dockerfile
blaze-aura69's picture
Create Dockerfile
fb84281 verified
FROM python:3.10-slim
# system dependencies (important for audio + ffmpeg)
RUN apt-get update && apt-get install -y \
git \
ffmpeg \
libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# install python deps first (better caching)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# copy app
COPY . .
# HF Spaces uses 7860 port
ENV PORT=7860
# start server
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]