diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..0636e7a9082baaf685c8eb2e73b266b6cfbd03a1 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ + .git/ + .idea/ \ No newline at end of file diff --git a/.gitignore b/.gitignore index 894a44cc066a027465cd26d634948d56d13af9af..4ad64672f26fdfeaec1fd7f5ce9d43c924ce6f4d 100644 --- a/.gitignore +++ b/.gitignore @@ -102,3 +102,5 @@ venv.bak/ # mypy .mypy_cache/ + +.idea/ \ No newline at end of file diff --git a/app.py b/app.py index 7dd97586f25edeac0665206b188c44c37d63f13f..b7a9847f543ab83523b587f0c426241644927082 100644 --- a/app.py +++ b/app.py @@ -1,10 +1,12 @@ from flask import Flask app = Flask(__name__) + @app.route("/") - def readfile(): - with open("/data/file.txt",'r') as inputfile: - return inputFile.readline() +def readfile(): + with open("/data/file.txt", 'r') as inputfile: + return inputfile.readline() + if __name__ == "__main__": - app.run(host='0.0.0.0', port=8080) + app.run(host='0.0.0.0', port=8080) \ No newline at end of file