summaryrefslogtreecommitdiffstats
path: root/demos/min/base-image/app.py
diff options
context:
space:
mode:
authorAdolfo Perez-Duran <adolfo@orangemonk.net>2018-08-27 22:59:06 -0600
committerAdolfo Perez-Duran <adolfo@orangemonk.net>2018-08-27 23:04:07 -0600
commit443b149246aba1fbd63b57d83c00a049b5b7f50d (patch)
treeeb3bcb5684d1fde8b3fa2deec18d591f5d54b186 /demos/min/base-image/app.py
parent712d5b7e7685bafee24d68d2bfb47de9bf5db59d (diff)
Create demos for each guideline.
Add demos for three of the minimization guidelines Issue-ID: INT-545 Change-Id: Ib7b15853e4a6ccf4948b31adb39e12706d0477d1 Signed-off-by: Adolfo Perez-Duran <adolfo@orangemonk.net>
Diffstat (limited to 'demos/min/base-image/app.py')
-rw-r--r--demos/min/base-image/app.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/demos/min/base-image/app.py b/demos/min/base-image/app.py
new file mode 100644
index 0000000..6165f1b
--- /dev/null
+++ b/demos/min/base-image/app.py
@@ -0,0 +1,10 @@
+from flask import Flask
+
+app = Flask(__name__)
+
+@app.route("/")
+def hello():
+ return "If a man never contradicts himself, the reason must be that he virtually never says anything at all... Erwin Schrodinger"
+
+if __name__ == "__main__":
+ app.run(debug=True,host='0.0.0.0')