From 90ecd940392d7b8a9db7a01f59d825de71e85866 Mon Sep 17 00:00:00 2001 From: Brian Bolt Date: Thu, 21 Nov 2024 16:56:11 -0800 Subject: [PATCH] ACAS-819: Update tomcat to tomcat:9.0.97-jdk11-temurin-jammy --- Dockerfile-multistage | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile-multistage b/Dockerfile-multistage index da0392e91..c7885804c 100644 --- a/Dockerfile-multistage +++ b/Dockerfile-multistage @@ -15,7 +15,7 @@ ADD . /src RUN --mount=type=cache,target=/root/.m2 mvn clean && \ mvn compile war:war -P ${CHEMISTRY_PACKAGE} -FROM tomcat:9.0.62-jre11-openjdk-slim-buster +FROM tomcat:9.0.97-jdk11-temurin-jammy # Third and Last Step That Requires Significant (Relative) Amount of Time RUN apt-get update && \ @@ -50,10 +50,10 @@ RUN useradd -u 1000 -ms /bin/bash runner && \ chown -R runner:runner /usr/local/tomcat/ # Allow certificates to be added by runner -RUN chgrp runner /usr/local/openjdk-11/lib/security/cacerts && \ - chmod g+w /usr/local/openjdk-11/lib/security/cacerts && \ +RUN chgrp runner $JAVA_HOME/lib/security/cacerts && \ + chmod g+w $JAVA_HOME/lib/security/cacerts && \ mkdir -p /usr/lib/jvm/java/jre/lib/security && \ - ln -s /usr/local/openjdk-11/lib/security/cacerts /usr/lib/jvm/java/jre/lib/security/cacerts + ln -s $JAVA_HOME/lib/security/cacerts /usr/lib/jvm/java/jre/lib/security/cacerts # Get acas-roo-server compiled code COPY --chown=runner:runner --from=compile /src/target/acas*.war /usr/local/tomcat/webapps/acas.war