dockerfile
This commit is contained in:
parent
4e59bc90c1
commit
cda7ab1c50
@ -13,9 +13,15 @@ RUN groupadd -g ${GROUP_ID} ${GROUPNAME} && useradd --no-log-init -u ${USER_ID}
|
|||||||
# Check if java.security exists at the correct path and remove any disabled algorithms
|
# Check if java.security exists at the correct path and remove any disabled algorithms
|
||||||
# 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
|
# 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 and clean up
|
# Install necessary packages, including ping, telnet, openssl, and CA certificates, and clean up
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y gosu libreoffice && \
|
apt-get install -y \
|
||||||
|
iputils-ping \ # For ping
|
||||||
|
inetutils-telnet \ # For telnet
|
||||||
|
openssl \ # For openssl commands
|
||||||
|
ca-certificates \ # For SSL/TLS certificate validation
|
||||||
|
gosu \ # Existing requirement
|
||||||
|
libreoffice && \ # Existing requirement
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
@ -24,13 +30,9 @@ COPY ./conf/catalina.properties /usr/local/tomcat/conf/catalina.properties
|
|||||||
COPY ./conf/context.xml /usr/local/tomcat/conf/context.xml
|
COPY ./conf/context.xml /usr/local/tomcat/conf/context.xml
|
||||||
COPY ./conf/server.xml /usr/local/tomcat/conf/server.xml
|
COPY ./conf/server.xml /usr/local/tomcat/conf/server.xml
|
||||||
|
|
||||||
#librerie
|
# Librerie
|
||||||
COPY ./libs/ /usr/local/tomcat/lib/
|
COPY ./libs/ /usr/local/tomcat/lib/
|
||||||
|
|
||||||
#cartelle docfinance
|
|
||||||
RUN mkdir -p /usr/local/tomcat/docfinance_in && mkdir -p /usr/local/tomcat/docfinance_out
|
|
||||||
RUN chmod -R 775 /usr/local/tomcat/docfinance_in && chmod -R 775 /usr/local/tomcat/docfinance_out
|
|
||||||
|
|
||||||
# Set permissions on Tomcat directories
|
# Set permissions on Tomcat directories
|
||||||
RUN chown -R ${USERNAME}:${GROUPNAME} /usr/local/tomcat
|
RUN chown -R ${USERNAME}:${GROUPNAME} /usr/local/tomcat
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user