Skip to content

Commit

Permalink
work dir must be writable
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Feb 12, 2025
1 parent 65ab5c2 commit a2c9c7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@ RUN echo Catalina base: ${CATALINA_BASE} && \
chmod 755 ${CATALINA_BASE}/conf/Catalina/localhost && \
for directory in 'webapps' 'work'; do \
mkdir -p ${CATALINA_BASE}/$directory && \
chmod 755 ${CATALINA_BASE}/$directory && \
rm -rf ${CATALINA_HOME}/$directory; \
done && \
chmod 755 ${CATALINA_BASE}/webapps && \
chmod 775 ${CATALINA_BASE}/work && \
(cd ${CATALINA_HOME} && rm -rf temp && rm -rf logs) && \
(cd ${CATALINA_BASE} && ln -s /data/logs logs) && \
sed -E -i "s|^(tomcat.util.scan.StandardJarScanFilter.jarsToScan[ \t]*=)(.*)$|\1${JARS_TO_SCAN}|g" ${CATALINA_BASE}/conf/catalina.properties && \
Expand Down

0 comments on commit a2c9c7c

Please sign in to comment.