From 590a6f414740bf7bbac3e8af04fa0a9a16aa20f4 Mon Sep 17 00:00:00 2001 From: zhao <70558837+fit2-zhao@users.noreply.github.com> Date: Fri, 6 Mar 2026 10:46:37 +0800 Subject: [PATCH] build: set JAVA_CLASSPATH in Dockerfile and startup script --- installer/Dockerfile | 1 + installer/shells/start-cordys.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/installer/Dockerfile b/installer/Dockerfile index a853606ab..4c8edb89a 100644 --- a/installer/Dockerfile +++ b/installer/Dockerfile @@ -15,6 +15,7 @@ COPY installer/shells /shells COPY installer/conf /installer/conf COPY installer/mcp /app/mcp +ENV JAVA_CLASSPATH=/app:/app/lib/* ENV JAVA_OPTIONS="-Dfile.encoding=utf-8 -Djava.awt.headless=true --add-opens java.base/jdk.internal.loader=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED" ARG CRM_VERSION=main diff --git a/installer/shells/start-cordys.sh b/installer/shells/start-cordys.sh index 063996659..c4b713301 100644 --- a/installer/shells/start-cordys.sh +++ b/installer/shells/start-cordys.sh @@ -2,6 +2,7 @@ bash /shells/init-directories.sh +export JAVA_CLASSPATH=/app:/app/lib/* export CRM_VERSION=`cat /tmp/CRM_VERSION` exec java ${JAVA_OPTIONS} -jar /app/cordys-crm.jar \ No newline at end of file