From f3ddfc8297eac4d049cb1f5a0f0521f60ac2a627 Mon Sep 17 00:00:00 2001 From: mcinj <98779161+mcinj@users.noreply.github.com> Date: Fri, 13 May 2022 17:06:11 -0400 Subject: [PATCH] running in docker --- Dockerfile | 2 +- src/run.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0ad015e..42b358f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/src/run.py b/src/run.py index 516351a..fa1ec81 100644 --- a/src/run.py +++ b/src/run.py @@ -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