From 986d2324289fb15b1bc76018bc3bc7c0d3eecf4b Mon Sep 17 00:00:00 2001 From: Justin Carter Date: Mon, 7 Oct 2024 13:10:36 +0800 Subject: [PATCH] support older Lucee builds by fixing missing directories --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ceb147d..d2215ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -55,6 +55,7 @@ COPY config/ /config/ # Define the TOMCAT_MAJOR_MINOR_VERSION dynamically and conditionally copy the files RUN TOMCAT_MAJOR_MINOR_VERSION=$(echo ${TOMCAT_VERSION} | awk -F. '{print $1 "." $2}') && \ + mkdir -p /usr/local/tomcat/conf /opt/lucee/server/lucee-server/context /opt/lucee/web && \ if [ -f "/config/tomcat/${TOMCAT_MAJOR_MINOR_VERSION}/web.xml" ]; then \ cp "/config/tomcat/${TOMCAT_MAJOR_MINOR_VERSION}/web.xml" /usr/local/tomcat/conf/web.xml; \ fi && \ @@ -73,7 +74,6 @@ RUN TOMCAT_MAJOR_MINOR_VERSION=$(echo ${TOMCAT_VERSION} | awk -F. '{print $1 "." rm -rf /config - # Custom setenv.sh to load Lucee COPY supporting/setenv.sh /usr/local/tomcat/bin/ RUN chmod a+x /usr/local/tomcat/bin/setenv.sh