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)