Spaces:
Sleeping
Sleeping
| # Use lightweight Python image | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /code | |
| # Copy files | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| COPY best_pipeline.joblib . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Start the service | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"] |