diff --git a/webapp/test.py b/webapp/test.py new file mode 100644 index 00000000..8ba3266e --- /dev/null +++ b/webapp/test.py @@ -0,0 +1,15 @@ +import os + +from flask import Flask + +app = Flask(__name__) + +@app.route('/') +def hello(): + provider = str(os.environ.get('PROVIDER', 'Test-Docker successfully')) + return 'Hello '+provider+'!' + +if __name__ == '__main__': + # Bind to PORT if defined, otherwise default to 5000. + port = int(os.environ.get('PORT', 5000)) + app.run(host='0.0.0.0', port=port)