Modified from https://github.com/kaushikraj/dockerfile.flask-uwsgi-nginx.
Argument parameters may not be supplied to a Flask app via docker command line when the entrypoint is supervisord. This sample shows a workaround on how environment variables can be used to achieve the same.
- docker build -t webapp .
- docker run -d -p 80:80 -e ReturnData="Hello Kaushik" webapp
- curl -X GET http://localhost/