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