From bb2aa0def22aacf1f5e9bd275d068f03713582de Mon Sep 17 00:00:00 2001 From: Alexander Pykavy Date: Tue, 9 Jan 2024 12:43:39 +0100 Subject: [PATCH] Correct dotnet entrypoint script to run the function host as the main process To ensure the signals are sent to the function host process rather than the entrypoint itself. For more details, see https://medium.com/@leonardo5621_66451/learn-how-to-use-entrypoint-scripts-in-docker-images-fede010f172d --- .../bullseye/amd64/dotnet/dotnet-inproc/start_nonappservice.sh | 2 +- .../amd64/dotnet/dotnet-isolated/start_nonappservice.sh | 2 +- .../amd64/dotnet/dotnet7-isolated/start_nonappservice.sh | 2 +- .../amd64/dotnet/dotnet8-isolated/start_nonappservice.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/host/4/bullseye/amd64/dotnet/dotnet-inproc/start_nonappservice.sh b/host/4/bullseye/amd64/dotnet/dotnet-inproc/start_nonappservice.sh index 0f130b842..2140c95cf 100644 --- a/host/4/bullseye/amd64/dotnet/dotnet-inproc/start_nonappservice.sh +++ b/host/4/bullseye/amd64/dotnet/dotnet-inproc/start_nonappservice.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash source /opt/startup/install_ca_certificates.sh -/azure-functions-host/Microsoft.Azure.WebJobs.Script.WebHost \ No newline at end of file +exec /azure-functions-host/Microsoft.Azure.WebJobs.Script.WebHost \ No newline at end of file diff --git a/host/4/bullseye/amd64/dotnet/dotnet-isolated/start_nonappservice.sh b/host/4/bullseye/amd64/dotnet/dotnet-isolated/start_nonappservice.sh index 0f130b842..2140c95cf 100644 --- a/host/4/bullseye/amd64/dotnet/dotnet-isolated/start_nonappservice.sh +++ b/host/4/bullseye/amd64/dotnet/dotnet-isolated/start_nonappservice.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash source /opt/startup/install_ca_certificates.sh -/azure-functions-host/Microsoft.Azure.WebJobs.Script.WebHost \ No newline at end of file +exec /azure-functions-host/Microsoft.Azure.WebJobs.Script.WebHost \ No newline at end of file diff --git a/host/4/bullseye/amd64/dotnet/dotnet7-isolated/start_nonappservice.sh b/host/4/bullseye/amd64/dotnet/dotnet7-isolated/start_nonappservice.sh index 0f130b842..2140c95cf 100644 --- a/host/4/bullseye/amd64/dotnet/dotnet7-isolated/start_nonappservice.sh +++ b/host/4/bullseye/amd64/dotnet/dotnet7-isolated/start_nonappservice.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash source /opt/startup/install_ca_certificates.sh -/azure-functions-host/Microsoft.Azure.WebJobs.Script.WebHost \ No newline at end of file +exec /azure-functions-host/Microsoft.Azure.WebJobs.Script.WebHost \ No newline at end of file diff --git a/host/4/bullseye/amd64/dotnet/dotnet8-isolated/start_nonappservice.sh b/host/4/bullseye/amd64/dotnet/dotnet8-isolated/start_nonappservice.sh index 0f130b842..2140c95cf 100644 --- a/host/4/bullseye/amd64/dotnet/dotnet8-isolated/start_nonappservice.sh +++ b/host/4/bullseye/amd64/dotnet/dotnet8-isolated/start_nonappservice.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash source /opt/startup/install_ca_certificates.sh -/azure-functions-host/Microsoft.Azure.WebJobs.Script.WebHost \ No newline at end of file +exec /azure-functions-host/Microsoft.Azure.WebJobs.Script.WebHost \ No newline at end of file