fix localhost
This commit is contained in:
parent
32b9ab49a8
commit
6dcd5639b4
@ -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
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user