Spaces:
Configuration error
Configuration error
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| git \ | |
| libsndfile1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements first for better caching | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application | |
| COPY . . | |
| # Make the download script executable | |
| RUN chmod +x download_model.py | |
| # Run the download script during build | |
| RUN python download_model.py | |
| # Expose the port the app runs on | |
| EXPOSE 7860 | |
| # Command to run the app | |
| CMD ["python", "app.py"] |