Spaces:
Sleeping
Sleeping
| # β Force Python 3.11 to match local environment | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY . /app | |
| # β Clean upgrade and install lightweight dependencies first | |
| RUN apt-get update && apt-get install -y gcc g++ && rm -rf /var/lib/apt/lists/* | |
| # β Install compatible libraries | |
| RUN pip install --upgrade pip | |
| RUN pip install --no-cache-dir \ | |
| gradio==5.49.1 \ | |
| xgboost==2.1.0 \ | |
| scikit-learn==1.7.2 \ | |
| pandas==2.3.3 \ | |
| numpy==2.3.4 \ | |
| joblib==1.4.2 \ | |
| openpyxl==3.1.5 \ | |
| tabulate==0.9.0 | |
| EXPOSE 7860 | |
| CMD | |