entrypoint.sh
This commit is contained in:
parent
e8daa9e42e
commit
0c21468ccf
@ -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
12
tomcat/entrypoint.sh
Normal 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 "$@"
|
||||
Loading…
Reference in New Issue
Block a user