$ python3 panoramic.py
* Serving Flask app "panoramic" (lazy loading)
* Environment: development
* Debug mode: on
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
* Debugger is active!
* Debugger PIN: 262-589-651
docker run \
--rm \
-it \
--name panoramic \
-p 5000:5000 \
--link cache:cache \
-e FLASK_ENV='development' \
-v "$PWD":/code \
r2r/panoramic-fc:latest
$ FLASK_APP='panoramic.py' flask run
* Serving Flask app "panoramic.py"
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
$ curl --header 'Content-Type: application/json' \
--request POST \
--data '{"request_id": "123x" }' \
http://localhost:5000/compute
{"request_id": "123x"}%