-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.py
29 lines (22 loc) · 796 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python3
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return '''
<pre>
m m ""# ""# m m ""# #
# # mmm # # mmm # # # mmm m mm # mmm#
#mmmm# #" # # # #" "# " #"# # #" "# #" " # #" "#
# # #"""" # # # # ## ##" # # # # # #
# # "#mm" "mm "mm "#m#" # # "#m#" # "mm "#m##
Dit is python in een docker container!
* Dependency 'flask' is geinstalleerd
* Port 5000 is opengezet in de container
</pre>
'''
@app.route('/test')
def test():
return 'Oii'
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000)