Spaces:
Build error
Build error
| FROM python:3.10-slim | |
| # Set environment variables | |
| ENV HF_HOME=/app/hf | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PIP_NO_CACHE_DIR=1 | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| libsndfile1 \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements and install Python packages | |
| COPY requirements.txt . | |
| RUN pip install --root-user-action=ignore -r requirements.txt | |
| # Copy app files | |
| COPY . . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run the app | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |