From 8760f6d670b6462635ab3f0d60142150f8570ef7 Mon Sep 17 00:00:00 2001 From: ankush21sali Date: Mon, 17 Feb 2025 19:05:18 +0530 Subject: [PATCH] This is New Feature & upgration in 2025 --- Dockerfile | 17 +++++++++++++++++ requirements.txt | 2 +- routes.py | 4 ++-- 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..37b3ea7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ + +#This Image version older than 8 years ago + + +FROM python:3.6 + +WORKDIR /app + +COPY . /app + +RUN pip install --no-cache-dir --upgrade pip setuptools + +RUN pip install --no-cache-dir -r requirements.txt + +EXPOSE 5000 + +CMD [ "python", "routes.py"] diff --git a/requirements.txt b/requirements.txt index b3453a2..703b936 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ click==6.7 Flask==0.12 itsdangerous==0.24 Jinja2==2.9.5 -MarkupSafe==1.0 +MarkupSafe==1.1.1 packaging==16.8 pyparsing==2.2.0 six==1.10.0 diff --git a/routes.py b/routes.py index b4377d8..2713c71 100644 --- a/routes.py +++ b/routes.py @@ -15,5 +15,5 @@ def symbol(): def myth(): return render_template('myth.html', the_title='Tiger in Myth and Legend') -if __name__ == '__main__': - app.run(debug=True) +if __name__ == "__main__": + app.run(host="0.0.0.0", port=5000, debug=True)