File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,7 @@ RUN apk --no-cache add curl \
5
5
&& echo "Pulling watchdog binary from Github." \
6
6
&& curl -sSLf https://github.com/openfaas-incubator/of-watchdog/releases/download/0.2.1/of-watchdog > /usr/bin/fwatchdog \
7
7
&& chmod +x /usr/bin/fwatchdog \
8
- && apk del curl --no-cache \
9
- && apk add --no-cache gcc \
10
- && apk add --no-cache musl-dev
8
+ && apk del curl --no-cache
11
9
12
10
WORKDIR /root/
13
11
Original file line number Diff line number Diff line change 3
3
4
4
from flask import Flask , request
5
5
from function import handler
6
- from gevent .pywsgi import WSGIServer
7
6
8
7
app = Flask (__name__ )
9
8
@@ -12,7 +11,5 @@ def main_route():
12
11
ret = handler .handle (request .get_data ())
13
12
return ret
14
13
15
- app .debug = False
16
-
17
14
if __name__ == '__main__' :
18
- WSGIServer (( '0.0.0.0' , 5000 ), app )
15
+ app . run ( host = '0.0.0.0' , port = 5000 , debug = False )
Original file line number Diff line number Diff line change 1
1
flask
2
- gevent
2
+
You can’t perform that action at this time.
0 commit comments