diff --git a/Dockerfile b/Dockerfile index a91a0d9..fe1e7d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ No newline at end of file +EXPOSE 5000 diff --git a/Hafas_Main_web.py b/Hafas_Main_web.py index c284060..c11eb52 100644 --- a/Hafas_Main_web.py +++ b/Hafas_Main_web.py @@ -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')