Skip to content

Commit

Permalink
Fix the problem of unable to start application through Docker image (#…
Browse files Browse the repository at this point in the history
…4859)

#### What type of PR is this?

/kind bug
/area core

#### What this PR does / why we need it:

See #4850 (comment) 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
```
  • Loading branch information
JohnNiang authored Nov 16, 2023
1 parent 796ffac commit 4216d95
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 @@ -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} ${@}"]

0 comments on commit 4216d95

Please sign in to comment.