Spaces:
Build error
Build error
| # Use Python 3.10 base image | |
| FROM python:3.10 | |
| # Set a working directory | |
| WORKDIR /app | |
| # Copy your app files | |
| COPY . /app | |
| # Install only necessary system dependencies (ffmpeg for audio processing) | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Set default command to run your app | |
| CMD ["python", "app.py"] | |