Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| # Install system dependencies including build tools for webrtcvad | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| libsndfile1 libsndfile1-dev \ | |
| ffmpeg \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Copy entire project | |
| COPY . . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r backend/requirements.txt | |
| # Download models during build | |
| RUN cd backend && python download_models.py | |
| # Expose port (HF Spaces uses 7860) | |
| EXPOSE 7860 | |
| # Start the application | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "--timeout", "300", "backend.wsgi:app"] | |