This commit is contained in:
LORENZO\pacio 2025-01-23 14:10:09 +01:00
parent 54b1568494
commit d39a99db1b
3 changed files with 6 additions and 12 deletions

View File

@ -1,2 +1,2 @@
#crea struttura e setta owner
sudo chown -R polo:polo tomcat apache
sudo useradd -u 20000 ahi
sudo chown -R ahi:ahi tomcat

View File

@ -1,4 +1,3 @@
#FROM tomcat:9.0.89-jdk17
FROM tomcat:9.0.97-jdk17
# Define arguments for the group and user IDs
@ -15,15 +14,10 @@ RUN groupadd -g ${GROUP_ID} ${GROUPNAME} && useradd --no-log-init -u ${USER_ID}
# RUN if [ -f /opt/java/openjdk/conf/security/java.security ]; then sed -i '/jdk.tls.disabledAlgorithms/d' /opt/java/openjdk/conf/security/java.security; else echo "java.security file not found"; fi
# Install necessary packages, including ping, telnet, openssl, and CA certificates, and clean up
RUN apt-get update && \
apt-get install -y \
iputils-ping \ # For ping
inetutils-telnet \ # For telnet
openssl \ # For openssl commands
ca-certificates \ # For SSL/TLS certificate validation
#libreoffice && \ # SOLO SE RICHIESTO PER infinity dms converter
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y iputils-ping inetutils-telnet openssl ca-certificates
# SOLO SE RICHIESTO PER infinity dms converter
#RUN apt-get install #libreoffice
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# CONFIG
COPY ./conf/catalina.properties /usr/local/tomcat/conf/catalina.properties