From 8c18294d6c921861272f2458be85d3939470fc0f Mon Sep 17 00:00:00 2001 From: Andreas Watermeyer Date: Wed, 17 May 2023 17:46:05 +0200 Subject: [PATCH] Graceful tomcat shutdown --- Dockerfile | 2 +- startup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index bc91930..77cf16f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -89,6 +89,6 @@ RUN apt purge -y && \ COPY *.sh /opt/ RUN chmod +x /opt/*.sh -ENTRYPOINT /opt/startup.sh +ENTRYPOINT ["/opt/startup.sh"] WORKDIR /opt diff --git a/startup.sh b/startup.sh index be5f51e..7877831 100755 --- a/startup.sh +++ b/startup.sh @@ -79,4 +79,4 @@ if [ "${CORS_ENABLED}" = "true" ]; then fi # start the tomcat -$CATALINA_HOME/bin/catalina.sh run +exec $CATALINA_HOME/bin/catalina.sh run