Replace Werkzeug with Bjoern as underlying WSGI server (#672)

This commit is contained in:
Ta-Ching Chen
2018-05-09 14:00:40 +08:00
committed by GitHub
parent 0a648d1d75
commit 9c91f00cb4
4 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
FROM alpine:3.5
RUN apk update
RUN apk add --no-cache python3 python3-dev build-base
RUN apk add --no-cache python3 python3-dev build-base libev-dev
RUN pip3 install --upgrade pip
RUN rm -r /root/.cache
+1 -1
View File
@@ -1,7 +1,7 @@
FROM alpine:3.5
RUN apk update
RUN apk add --no-cache python python-dev build-base py-pip
RUN apk add --no-cache python python-dev build-base py-pip libev-dev
RUN pip install --upgrade pip
RUN rm -r /root/.cache
+1
View File
@@ -1,4 +1,5 @@
Flask===0.11.1
bjoern
httplib2
python-dateutil
requests==2.7.0
+2 -1
View File
@@ -4,6 +4,7 @@ import logging
import sys
import imp
import os
import bjoern
from flask import Flask, request, abort, g
@@ -99,4 +100,4 @@ def setup_logger(loglevel):
#
setup_logger(logging.DEBUG)
app.logger.info("Starting server")
app.run(host='0.0.0.0', port=8888)
bjoern.run(app, '0.0.0.0', 8888, reuse_port=True)