Ajoute gunicorn3 à gen

This commit is contained in:
Philippe Chataignon 2020-04-26 11:14:39 +02:00
parent 083d41862b
commit 42cfe9c161
3 changed files with 7 additions and 1 deletions

View file

@ -1,6 +1,6 @@
FROM alpine:3.11.5
RUN apk --update add musl-dev gcc python3 python3-dev scons swig py3-bottle
RUN apk --update add musl-dev gcc python3 python3-dev scons swig py3-bottle py3-gunicorn
COPY . /app
RUN ln -sf /usr/bin/python3 /usr/bin/python ;\
cd /app/gen ;\

1
server/go Normal file
View file

@ -0,0 +1 @@
gunicorn3 --bind localhost:1964 --workers=4 wsgi:app

5
server/wsgi.py Normal file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env python3
from server import app
if __name__ == "__main__":
app.run()