File size: 314 Bytes
a4224f5
 
 
 
 
 
20d48b6
a4224f5
 
 
7c7e513
a4224f5
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.11-slim

WORKDIR /app

COPY requirements.txt .
COPY app.py .
COPY custom.py .
COPY xgb_desertification_pipeline.pkl .
COPY feature_names.pkl .
COPY label_encoder.pkl .

RUN pip install --no-cache-dir -r requirements.txt

EXPOSE 8000

CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]