Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install system deps required by faster-whisper | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| git \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Avoid python buffering (important for logs in HF) | |
| ENV PYTHONUNBUFFERED=1 | |
| # Install python deps | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy app | |
| COPY . . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run the application | |
| CMD ["sh", "-c", "uvicorn app:app --host 0.0.0.0 --port ${PORT}"] | |