diff --git a/runtimes/flask/Dockerfile.j2 b/runtimes/flask/Dockerfile.j2 index 303dd99..75ee20f 100644 --- a/runtimes/flask/Dockerfile.j2 +++ b/runtimes/flask/Dockerfile.j2 @@ -18,5 +18,5 @@ USER app COPY --from=build /home/app/ . -CMD ["venv/bin/uwsgi", "--http", "0.0.0.0:3000", "--master", "-p", "4", "-w", "funko:app"] +CMD ["venv/bin/uwsgi", "--http", "0.0.0.0:3000", "--master", "-p", "1", "-w", "funko:app"] HEALTHCHECK {{ healthcheck_options }} CMD {{ healthcheck_command }} \ No newline at end of file diff --git a/runtimes/flask/template/funko.py.j2 b/runtimes/flask/template/funko.py.j2 index eeb8c38..d21b5f7 100644 --- a/runtimes/flask/template/funko.py.j2 +++ b/runtimes/flask/template/funko.py.j2 @@ -5,3 +5,7 @@ app = Flask("{{name}}") @app.route('/') def handle(req): return "Hello World from Flask!" + +@app.route('/ping') +def handle(req): + return "OK"