From 4216d95cd6a5a4fc3d261c952e6f6ae9bb649da8 Mon Sep 17 00:00:00 2001 From: John Niang Date: Thu, 16 Nov 2023 19:36:07 +0800 Subject: [PATCH] Fix the problem of unable to start application through Docker image (#4859) #### What type of PR is this? /kind bug /area core #### What this PR does / why we need it: See https://github.com/halo-dev/halo/pull/4850#issuecomment-1812068735 for more. Test steps: ```bash make -C console build ./gradlew clean build -x check docker build -t halo:not-find-main-class . docker run -it --rm -p 8090:8090 -v ~/.halo2:/root/.halo2 halo:not-find-main-class ``` #### Does this PR introduce a user-facing change? ```release-note None ``` --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 539fd484a..284223650 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,4 +22,4 @@ ENV JVM_OPTS="-Xmx256m -Xms256m" \ RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \ && echo $TZ > /etc/timezone -ENTRYPOINT ["sh", "-c", "java ${JVM_OPTS} org.springframework.boot.loader.JarLauncher ${0} ${@}"] +ENTRYPOINT ["sh", "-c", "java ${JVM_OPTS} org.springframework.boot.loader.launch.JarLauncher ${0} ${@}"]