From 1b97e084bf39ad5a6f8ddc0b540578ef8d059b6a Mon Sep 17 00:00:00 2001 From: oOraph <13552058+oOraph@users.noreply.github.com> Date: Thu, 17 Oct 2024 11:15:26 +0200 Subject: [PATCH] fix tgi-entrypoint wrapper in docker file: exec instead of spawning a child process (#2663) tgi-entrypoint: exec instead of spawning a child process reason: otherwise parent will receive the signals when we'd like tgi to receive them keeping the parent/child is not necessary and would require the parent to handle signals to forward them properly to the child Signed-off-by: Raphael Glon Co-authored-by: Raphael Glon --- tgi-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgi-entrypoint.sh b/tgi-entrypoint.sh index ea94dcd9..278c7d96 100755 --- a/tgi-entrypoint.sh +++ b/tgi-entrypoint.sh @@ -2,4 +2,4 @@ ldconfig 2>/dev/null || echo 'unable to refresh ld cache, not a big deal in most cases' -text-generation-launcher $@ +exec text-generation-launcher $@