File size: 552 Bytes
b2e65e5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# ✅ 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 ["python", "app.py"]