File size: 771 Bytes
929335e
 
 
 
 
 
 
 
 
 
 
 
 
 
73d7334
 
929335e
73d7334
 
 
929335e
 
 
 
 
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
FROM python:3.10-slim

RUN apt-get update && apt-get install -y --no-install-recommends \
    curl ca-certificates && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /app

COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt

# Copy the code and model
COPY app.py /app/app.py
COPY best_model.h5 /app/best_model.h5
COPY best_model.keras /app/best_model.keras
COPY best_model_converted.keras /app/best_model_converted.keras
COPY means_std.json /app/means_std.json
COPY imputer.joblib /app/imputer.joblib
COPY scaler.joblib /app/scaler.joblib
COPY best_params_and_metrics.json /app/best_params_and_metrics.json

EXPOSE 7860

# Run FastAPI (this is the crucial line!)
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]