|
|
|
FROM python:3.11-slim as builder |
|
|
|
WORKDIR /app |
|
|
|
|
|
RUN apt-get update && \ |
|
apt-get install -y --no-install-recommends git wget && \ |
|
apt-get clean && \ |
|
rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
RUN git clone -b patch-1 https://github.com/zawsq/HeartDiseasePredictor_Model.git /app/HeartDiseasePredictor_Model |
|
|
|
|
|
WORKDIR /app/HeartDiseasePredictor_Model |
|
|
|
|
|
RUN wget -O /app/HeartDiseasePredictor_Model/model/RandomForest_best_model.pkl \ |
|
https://huggingface.co/exis0705/heart_disease_predictor_model/resolve/main/RandomForest_best_model.pkl |
|
|
|
|
|
ENV PYTHONPATH=/app/HeartDiseasePredictor_Model |
|
|
|
|
|
RUN pip install --upgrade pip && \ |
|
pip install -r requirements.txt |
|
|
|
|
|
WORKDIR /app/HeartDiseasePredictor_Model/deployment/Api |
|
CMD ["python", "app.py"] |