entrypoint.sh

This commit is contained in:
LORENZO\pacio 2024-11-07 15:33:09 +01:00
parent e8daa9e42e
commit 0c21468ccf
2 changed files with 19 additions and 2 deletions

View File

@ -31,7 +31,12 @@ 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}
# Default command to run Tomcat
CMD ["catalina.sh", "run"]
CMD ["catalina.sh", "run"]

12
tomcat/entrypoint.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
umask 002
# Set permissions for DOCFINANCE directories
#chmod -R 775 /usr/local/tomcat/ahi/WEB-INF/Tmp
#chmod -R 775 /usr/local/tomcat/ahi/WEB-INF/docfinance_out
#chmod 755 /usr/local/tomcat/ahi/WEB-INF/Tmp/upload.dir
# Run the main Tomcat process
exec "$@"