| # Base image: Python slim | |
| FROM python:3.10-slim | |
| # Set working dir | |
| WORKDIR /app | |
| # Copy project | |
| COPY . /app | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose port (Gradio default: 7860) | |
| EXPOSE 7860 | |
| # Run app | |
| CMD ["python", "app.py"] | |