terug naar start

This commit is contained in:
2020-02-27 11:07:34 +01:00
parent 0df60a3d4d
commit ed479f3f04
10 changed files with 36525 additions and 5 deletions

16
serverC/app.py Normal file
View File

@@ -0,0 +1,16 @@
from flask import Flask
from flask import jsonify
app = Flask(__name__)
@app.route('/')
def doRequest():
data = {
"serverName": "serverC",
"success": "true"
}
return jsonify(data)
if __name__ == '__main__':
app.run(debug=True, host="0.0.0.0", port=6000)

10
serverC/dockerfile Normal file
View File

@@ -0,0 +1,10 @@
from python:3.7
copy . /app
workdir /app
run pip install -r requirements.txt
expose 6000
entrypoint [ "python" ]
cmd [ "app.py" ]

1
serverC/requirements.txt Normal file
View File

@@ -0,0 +1 @@
Flask