Added Docker configuration
This commit is contained in:
parent
a610b22f96
commit
398a4d4fb4
16
DockerFile
Normal file
16
DockerFile
Normal 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" ]
|
||||
2
main.py
2
main.py
@ -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')
|
||||
|
||||
@ -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 %}
|
||||
Loading…
x
Reference in New Issue
Block a user