fixed dockerfile and added ssl to eventlet server
This commit is contained in:
@@ -1,12 +1,18 @@
|
|||||||
from python:latest
|
from python:latest
|
||||||
|
|
||||||
RUN pip install --upgrade pip \
|
RUN pip install --upgrade pip
|
||||||
eventlet \
|
|
||||||
google-api-pythonclient \
|
RUN pip install \
|
||||||
google-auth-httplib2 \
|
eventlet \
|
||||||
google-auth-oauthlib
|
google-api-pythonclient \
|
||||||
|
google-auth-httplib2 \
|
||||||
|
google-auth-oauthlib \
|
||||||
|
python-socketio
|
||||||
|
|
||||||
WORKDIR /backend
|
WORKDIR /backend
|
||||||
|
|
||||||
RUN git clone https://vcs.murgi.de:8888/daniel/splittermond-backend.git && \
|
RUN git clone https://vcs.murgi.de:8888/daniel/splittermond-backend.git && \
|
||||||
python3.7 main.py
|
|
||||||
|
WORKDIR /backend/splittermond-backend
|
||||||
|
|
||||||
|
EXPOSE 3101
|
||||||
|
|||||||
2
main.py
2
main.py
@@ -74,5 +74,5 @@ def message(sid, data):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
eventlet.wsgi.server(eventlet.listen(('', 3101)), app)
|
eventlet.wsgi.server(eventlet.wrap_ssl(eventlet.listen(('', 3101)), certfile='fullchain.pem', keyfile='privkey.pem', server_side=True), app)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user