This commit is contained in:
LORENZO\pacio 2024-12-31 09:42:58 +01:00
parent e2deaf6d4b
commit ce35e86ef2
3 changed files with 2 additions and 26 deletions

View File

@ -35,12 +35,6 @@ RUN chown -R ${USERNAME}:${GROUPNAME} /usr/local/tomcat
RUN mkdir -p /home/${USERNAME}/.cache/dconf && \
chown -R ${USERNAME}:${GROUPNAME} /home/${USERNAME}/.cache/dconf
# Copy entrypoint script and make it executable
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
USER ${USERNAME}
CMD ["catalina.sh", "run"]

View File

@ -19,14 +19,8 @@ COPY ./conf/server.xml /usr/local/tomcat/conf/server.xml
COPY ./libs/ /usr/local/tomcat/lib/
# Set permissions on Tomcat directories
RUN chown -R ${USERNAME}:${GROUPNAME} /usr/local/tomcat
RUN chown -R ${USER_ID}:${GROUP_ID} /usr/local/tomcat
# Copy entrypoint script and make it executable
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
USER ${USERNAME}
USER ${USER_ID}
CMD ["catalina.sh", "run"]

View File

@ -1,12 +0,0 @@
#!/bin/bash
umask 002
#cartelle docfinance
mkdir -p /usr/local/tomcat/docfinance_in
mkdir -p /usr/local/tomcat/docfinance_out
chmod -R 775 /usr/local/tomcat/docfinance_in
chmod -R 775 /usr/local/tomcat/docfinance_out
# Run the main Tomcat process
exec "$@"