fixed dockerfile and added ssl to eventlet server

This commit is contained in:
daniel
2019-06-20 17:25:16 +02:00
parent f769ba265d
commit e8f64332a7
2 changed files with 13 additions and 7 deletions

View File

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

View File

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