Skip to content

Commit

Permalink
(docker/dist/jwt-server) Update tomcat version from 10.1.30 to 10.1.31
Browse files Browse the repository at this point in the history
  • Loading branch information
otatebe committed Oct 16, 2024
1 parent 282dcf6 commit 2975444
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docker/dist/jwt-server/jwt-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rockylinux/rockylinux:9.3
FROM rockylinux/rockylinux:9

RUN dnf -y update \
&& dnf -y install \
Expand All @@ -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
Expand Down

0 comments on commit 2975444

Please sign in to comment.