From fd5c68c2bbb74f8ddc2c8f341e8dc69cb7850de4 Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Thu, 19 Dec 2024 11:32:12 +0100 Subject: [PATCH] feat: Use tini for server containers --- client-base/environment.yml | 1 + server-base/entrypoint.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client-base/environment.yml b/client-base/environment.yml index 626c187..52197b8 100644 --- a/client-base/environment.yml +++ b/client-base/environment.yml @@ -12,3 +12,4 @@ dependencies: - python-multipart - rich - typer + - tini diff --git a/server-base/entrypoint.sh b/server-base/entrypoint.sh index 4d57850..65fa79f 100644 --- a/server-base/entrypoint.sh +++ b/server-base/entrypoint.sh @@ -9,4 +9,5 @@ ulimit -n 8192 eval "$(micromamba shell hook --shell=posix)" micromamba activate base -exec "$@" +# Use tini to avoid zombie processes and properly handle signal forwarding +exec tini -- "$@"