From bdad68430bf74661c17cc01fc403e7414240839f Mon Sep 17 00:00:00 2001 From: thakarprathamesh Date: Thu, 15 Dec 2022 17:51:59 +0530 Subject: [PATCH] FC --- Dockerfile | 7 +++++++ app.py | 9 +++++++++ requirements.txt | 2 ++ 3 files changed, 18 insertions(+) create mode 100644 Dockerfile create mode 100644 app.py create mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f39cb07 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM python:alpine3.17 +WORKDIR /app +COPY . /app +RUN pip install -r requirements.txt +EXPOSE 9999 +WORKDIR /app +ENTRYPOINT ["python", "app.py"] diff --git a/app.py b/app.py new file mode 100644 index 0000000..47e6fe8 --- /dev/null +++ b/app.py @@ -0,0 +1,9 @@ +from flask import Flask +app = Flask(__name__) + +@app.route('/') +def hello_world(): + return 'Hello World Python Program.' + +if __name__ == "__main__": + app.run(host="0.0.0.0", port=9999) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..dd9f47b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +flask +pandas