- Build the project via:
docker build -t graalvm-module-sample .
- Run the JVM-Version via:
docker run --rm graalvm-module-sample java --module-path /code/target/graalvm-module-sample-1.0-SNAPSHOT.jar --module graalvmmodulesample/de.example.graalvmmodulesample.Application
- Run the native-image-Version via:
docker run --rm graalvm-module-sample
Both versions should have the same output, but the native-image version fails, loading the resource via moduel api in first try.