Added Docker configuration

This commit is contained in:
Abel 2021-12-31 14:25:11 +01:00
parent a610b22f96
commit 398a4d4fb4
3 changed files with 18 additions and 2 deletions

16
DockerFile Normal file
View File

@ -0,0 +1,16 @@
FROM ubuntu:20.04
MAINTANER Abel Fokkinga "abel@fokkinga.com"
RUN apt-get update -y && \
apt-get install -y python-pip python-dev
WORKDIR /app
RUN pip install flask, requests, wtforms, json
COPY . /app
ENTRYPOINT [ "python" ]
CMD [ "main.py" ]

View File

@ -91,4 +91,4 @@ class ReusableForm(Form):
if __name__ == '__main__':
with open('config.json') as json_data:
config = json.load(json_data)
app.run(debug=False)
app.run(debug=False, host='0.0.0.0')

View File

@ -2,6 +2,6 @@
{% block content %}
<div class="about">
<h1>Zoek je aansluiting</h1>
<p>versie 2021-12-17</p>
<p>versie 2021-12-31</p>
</div>
{% endblock %}