diff --git a/docker-compose-multi.yml b/docker-compose.yml similarity index 100% rename from docker-compose-multi.yml rename to docker-compose.yml diff --git a/script_init b/script_init index 64737b6..21e1804 100644 --- a/script_init +++ b/script_init @@ -1,2 +1,2 @@ -#crea struttura e setta owner -sudo chown -R polo:polo tomcat apache \ No newline at end of file +sudo useradd -u 20000 ahi +sudo chown -R ahi:ahi tomcat \ No newline at end of file diff --git a/tomcat/Dockerfile b/tomcat/Dockerfile index 721d270..ab949b9 100644 --- a/tomcat/Dockerfile +++ b/tomcat/Dockerfile @@ -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