From c61f8175e68ee7712a8ba57beb3290c826613131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madis=20M=C3=A4gi?= Date: Tue, 26 Oct 2021 16:37:57 +0000 Subject: [PATCH] Drop gunicorn and bind to 0.0.0.0 (#12) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.k-space.ee/k-space/doorboy-proxy/pulls/12 Co-authored-by: Madis Mägi Co-committed-by: Madis Mägi --- Dockerfile | 2 +- doorboy.py | 2 +- requirements.txt | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 34a9178..f28d41a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,4 +5,4 @@ COPY requirements.txt ./ RUN pip install -r requirements.txt COPY *.py ./ -CMD ["gunicorn", "--worker-class", "sanic.worker.GunicornWorker", "--workers", "10", "--bind", "[::]:5000", "doorboy:app", "--timeout", "90"] +CMD python doorboy.py diff --git a/doorboy.py b/doorboy.py index e838513..62584fa 100644 --- a/doorboy.py +++ b/doorboy.py @@ -59,4 +59,4 @@ async def view_longpoll(request): return stream(g, content_type="text/event-stream") if __name__ == '__main__': - app.run(debug=False, port=5000) + app.run(debug=False, host='0.0.0.0', port=5000) diff --git a/requirements.txt b/requirements.txt index ce59ef1..ff9dbc1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ -gunicorn sanic motor