Help with setting up Flask + Firebase + SocketIO (or other Websocket library) -- 2
Budget: $15 – $25 AUD
Has anyone used websockets with Flask + Firebase (via Dockerfile image on Cloud Run)? I have it working via this tutorial: https://www.youtube.com/watch?v=t5EfITuFD9w but the websockets keep disconnecting randomly on the deployed version. The localhost version is fine.
Please let me know if you know how to fix it. My dockerfile is this:
FROM python:3.7-slim
RUN pip install gunicorn firebase-admin Flask flask-socketio
COPY src/ app/
WORKDIR /app
ENV PORT 8080
CMD exec gunicorn --bind :$PORT --workers 4 --threads 100 app:app
Please let me know if you know how to fix it. My dockerfile is this:
FROM python:3.7-slim
RUN pip install gunicorn firebase-admin Flask flask-socketio
COPY src/ app/
WORKDIR /app
ENV PORT 8080
CMD exec gunicorn --bind :$PORT --workers 4 --threads 100 app:app