Skip to content

Commit

Permalink
support older Lucee builds by fixing missing directories
Browse files Browse the repository at this point in the history
  • Loading branch information
justincarter authored Oct 7, 2024
1 parent 6bcc13b commit 986d232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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
Expand Down

0 comments on commit 986d232

Please sign in to comment.