File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
implementations/cli/src/main/java/de/bluecolored/bluemap/cli Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ FROM eclipse-temurin:21-jre-jammy
22
33WORKDIR /app
44
5+ ENV BLUEMAP_COMMAND="docker run --rm -it ghcr.io/bluemap-minecraft/bluemap"
6+
57COPY build/release/*-cli.jar cli.jar
68
79ENTRYPOINT [ "java" , "-jar" , "cli.jar" ]
Original file line number Diff line number Diff line change @@ -546,6 +546,10 @@ private static void printHelp() {
546546 private static String getCliCommand () {
547547 String filename = "bluemap-cli.jar" ;
548548 try {
549+ if (System .getenv ("BLUEMAP_COMMAND" ) != null ) {
550+ return System .getenv ("BLUEMAP_COMMAND" );
551+ }
552+
549553 Path file = Path .of (BlueMapCLI .class .getProtectionDomain ()
550554 .getCodeSource ()
551555 .getLocation ()
You can’t perform that action at this time.
0 commit comments