Docker + GraalVM native-image
- create locally the
graalvm-native-image
container usinggraalvm-native-image/build.sh
. This container will be used to build the native image. - run sbt
- run in sbt:
dockerGraalvmNative
: this will generate thedocker-graalvm-native-test
container - run in sbt:
docker:publishLocal
: this will generate thedocker-test
continer - run in shell:
time docker run --rm docker-graalvm-native-test
- run in shell:
time docker run --rm docker-test
and compare the timing - run
docker images | grep docker-
and compare the image size