Simple API that train and predict on a model for Iris dataset.
https://api-demo-becode.herokuapp.com/
-
-- README.md
-- App.py
-- Training
---- training.py
-- Models
---- Model.pickle
/
-> alive/train
-> Train the model and save it/predict
-> Return a prediction
docker build -t api-demo .
With volumes:
docker run -v $PWD:/app -p 5000:5000 -it api-demo bash
Without:
docker run -p 5000:5000 -it api-demo bash
Without interactive mode:
docker run -p 5000:5000 -t api-demo
Remote container
Docker