Added ping endpoint, lower resource usage

This commit is contained in:
Roberto Alsina 2024-07-06 20:48:56 -03:00
parent b611ed199b
commit 6ff67e0190
2 changed files with 5 additions and 1 deletions

View File

@ -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 }}

View File

@ -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"