From 8b5e66ccff2e0e10d601a43325454deaa2b4ea0d Mon Sep 17 00:00:00 2001 From: Corentin REGAL Date: Wed, 23 Oct 2024 15:53:37 +0200 Subject: [PATCH] fix: use exec in endpointry.sh to handle signal correctly via starlette --- scripts/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 3e62536b..4cec7345 100644 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -18,4 +18,4 @@ if [[ ! -z "${HF_MODEL_DIR}" ]]; then fi # Start the server -uvicorn webservice_starlette:app --host 0.0.0.0 --port ${PORT} +exec uvicorn webservice_starlette:app --host 0.0.0.0 --port ${PORT}