Drop gunicorn and bind to 0.0.0.0 (#12)

Reviewed-on: #12
Co-authored-by: Madis Mägi <madis.magi@k-space.ee>
Co-committed-by: Madis Mägi <madis.magi@k-space.ee>
This commit is contained in:
Madis Mägi 2021-10-26 16:37:57 +00:00 committed by Lauri Võsandi
parent 8cf4bf7a45
commit c61f8175e6
3 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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)

View File

@ -1,3 +1,2 @@
gunicorn
sanic
motor