fix localhost

This commit is contained in:
Philipp Wagner 2023-10-12 19:16:44 +02:00
parent 32b9ab49a8
commit 6dcd5639b4
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,8 @@
FROM python:latest
WORKDIR /hafas_db
COPY Hafas_Main_web.py app.py
COPY templates/* ./templates
RUN pip3 install pyhafas Flask typing
RUN mkdir -p templates
COPY templates templates/.
RUN pip3 install pyhafas Flask
CMD ["python3", "app.py"]
EXPOSE 5000
EXPOSE 5000

View File

@ -48,4 +48,4 @@ def update_departures():
return jsonify({'departures': departures})
if __name__ == '__main__':
app.run(debug=True)
app.run(debug=False, host='0.0.0.0')