This Python sample application uses the Flask framework.
This version of the application can be packaged and deployed as a Docker container.
-
To build the container run (from the directory containing dockerfile):
sudo docker build -t dg-fibonacci-be . -
To run the container run:
sudo docker run -p 5000:5000 -d --name dg-fibonacci-be dg-fibonacci-be -
To access the API:
http://<app-ip>:5000/api/fibonacci/<num>