- Install and run Docker
- Build Docker image using
docker build . -t iris_server
- Run Docker container using
docker run --rm -it -p 80:80 iris_server
- Go to
http://127.0.0.1:80/docs
to see all available methods of the API
All parameters are hardcoded to make the example as easy as possible
- server.py contains API logic
- train.py trains dummy model using Iris dataset
- query_example.py helps to check that docker container working properly
- Dockerfile describes a Docker image that is used to run the API