From 29754440bd9bcfd6637a6b8c635404059cd697c9 Mon Sep 17 00:00:00 2001 From: Osamu Tatebe Date: Wed, 16 Oct 2024 10:48:48 +0900 Subject: [PATCH] (docker/dist/jwt-server) Update tomcat version from 10.1.30 to 10.1.31 --- docker/dist/jwt-server/jwt-server/Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docker/dist/jwt-server/jwt-server/Dockerfile b/docker/dist/jwt-server/jwt-server/Dockerfile index 6c9c40268..f02f23731 100644 --- a/docker/dist/jwt-server/jwt-server/Dockerfile +++ b/docker/dist/jwt-server/jwt-server/Dockerfile @@ -1,4 +1,4 @@ -FROM rockylinux/rockylinux:9.3 +FROM rockylinux/rockylinux:9 RUN dnf -y update \ && dnf -y install \ @@ -7,12 +7,14 @@ RUN dnf -y update \ RUN alternatives --set java java-21-openjdk.x86_64 RUN alternatives --set javac java-21-openjdk.x86_64 -RUN wget https://dlcdn.apache.org/tomcat/tomcat-10/v10.1.30/bin/apache-tomcat-10.1.30.tar.gz -RUN tar -xvf apache-tomcat-10.1.30.tar.gz -C /opt -RUN ln -s /opt/apache-tomcat-10.1.30 /opt/tomcat +ARG TOMCAT_VER=10.1.31 + +RUN wget https://dlcdn.apache.org/tomcat/tomcat-10/v$TOMCAT_VER/bin/apache-tomcat-$TOMCAT_VER.tar.gz +RUN tar -xvf apache-tomcat-$TOMCAT_VER.tar.gz -C /opt +RUN ln -s /opt/apache-tomcat-$TOMCAT_VER /opt/tomcat RUN useradd -s /sbin/nologin tomcat -RUN chown -R tomcat: /opt/apache-tomcat-10.1.30 +RUN chown -R tomcat: /opt/apache-tomcat-$TOMCAT_VER RUN sh -c 'chmod +x /opt/tomcat/bin/*.sh' COPY tomcat.service /etc/systemd/system