Installation
Docker Install
Clone the repository
git clone https://github.com/PierreExeter/MLOps-Pipeline-Deployment
Build the image
docker build -t insurancemodel.azurecr.io/mlops-insurance-prediction:latest .
The diferent elements in this command are :
Azure registry name : insurancemodel.azurecr.io
Docker image name : mlops-insurance-prediction
tag : latest
Run the Docker container
docker run -d -p 5000:5000 insurancemodel.azurecr.io/mlops-insurance-prediction
The web app is served on http://localhost:5000/
Open the container (optional)
docker exec -it <container-id> /bin/bash
Stop the container
docker stop <container-id>
Local Install
Clone the repository
git clone https://github.com/PierreExeter/MLOps-Pipeline-Deployment
Install the dependencies
conda create -n pycaret-env python=3.11 -y
conda activate pycaret-env
pip install -U -r requirements.txt
Train the model
python src/train_model.py
Run the app locally
# development
python src/app.py
# production
python src/app.py --production
The web app is served on http://localhost:5000/