diff --git a/Dockerfile b/Dockerfile index 6e5ec5d..df0fb9d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 ;\ diff --git a/server/go b/server/go new file mode 100644 index 0000000..0d68f1b --- /dev/null +++ b/server/go @@ -0,0 +1 @@ +gunicorn3 --bind localhost:1964 --workers=4 wsgi:app diff --git a/server/wsgi.py b/server/wsgi.py new file mode 100644 index 0000000..0843bde --- /dev/null +++ b/server/wsgi.py @@ -0,0 +1,5 @@ +#!/usr/bin/env python3 +from server import app + +if __name__ == "__main__": + app.run()