running in docker

This commit is contained in:
mcinj 2022-05-13 17:06:11 -04:00
parent 4478b14e20
commit f3ddfc8297
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ RUN python -m venv $VIRTUAL_ENV
COPY requirements.txt .
RUN pip3 install -r requirements.txt
COPY ./src/* /app/
COPY ./src/ /app/
VOLUME /config
CMD ["python3", "run.py"]

View file

@ -40,7 +40,7 @@ class WebServerThread(threading.Thread):
return app.response_class(generate(), mimetype='text/plain')
app.run(port=9647)
app.run(port=9647, host="0.0.0.0")
def run(self):
# Variable that stores the exception, if raised by someFunction