Spaces:
Sleeping
Sleeping
| # Base image with Python pre-installed | |
| FROM python:3.9-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy application files into the container | |
| COPY . /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| libsndfile1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| # Expose the port Gradio will use | |
| EXPOSE 7860 | |
| # Define the command to run the app | |
| CMD ["python", "app.py"] | |