Added ping endpoint, lower resource usage
This commit is contained in:
parent
b611ed199b
commit
6ff67e0190
@ -18,5 +18,5 @@ USER app
|
|||||||
|
|
||||||
COPY --from=build /home/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 }}
|
HEALTHCHECK {{ healthcheck_options }} CMD {{ healthcheck_command }}
|
@ -5,3 +5,7 @@ app = Flask("{{name}}")
|
|||||||
@app.route('/')
|
@app.route('/')
|
||||||
def handle(req):
|
def handle(req):
|
||||||
return "Hello World from Flask!"
|
return "Hello World from Flask!"
|
||||||
|
|
||||||
|
@app.route('/ping')
|
||||||
|
def handle(req):
|
||||||
|
return "OK"
|
||||||
|
Loading…
Reference in New Issue
Block a user