This commit is contained in:
thakarprathamesh
2022-12-15 17:51:59 +05:30
commit bdad68430b
3 changed files with 18 additions and 0 deletions

7
Dockerfile Normal file
View File

@@ -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"]

9
app.py Normal file
View File

@@ -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)

2
requirements.txt Normal file
View File

@@ -0,0 +1,2 @@
flask
pandas