tis af fam, dees was wel de minst plezante om te doen

This commit is contained in:
2020-03-11 11:51:20 +01:00
parent 65bdd82116
commit abc959da18
16 changed files with 104 additions and 43 deletions

View File

@@ -6,11 +6,19 @@ app = Flask(__name__)
@app.route('/')
def doRequest():
data = {
"serverName": "serverC",
"serverName": "server-c",
"version": "master",
"success": "true"
}
return jsonify(data)
@app.route('/', defaults={'path': ''})
@app.route('/<path:path>')
def doRequest(path):
return path + "\nserver-c"
if __name__ == '__main__':
app.run(debug=True, host="0.0.0.0", port=6000)
app.run(debug=True, host="0.0.0.0", port=80)

View File

@@ -4,7 +4,7 @@ copy . /app
workdir /app
run pip install -r requirements.txt
expose 6000
expose 80
entrypoint [ "python" ]
cmd [ "app.py" ]