File size: 686 Bytes
e1ef3ec 1bc2953 e1ef3ec 1bc2953 e1ef3ec 2dfa24f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# Stage 1: Build
FROM python:3.11-slim as builder
WORKDIR /app
# Install git
RUN apt-get update && \
apt-get install -y --no-install-recommends git && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Clone the public repository
RUN git clone https://github.com/exis000/HeartDiseasePredictor_Model.git /app/HeartDiseasePredictor_Model
# Set the working directory to the cloned repository
WORKDIR /app/HeartDiseasePredictor_Model
# Install Python dependencies
RUN pip install --upgrade pip && \
pip install -r requirements.txt
# Change to the deployment/Api directory and run the app
WORKDIR /app/HeartDiseasePredictor_Model/deployment/Api
CMD ["python", "app.py"] |