Docker + GraalVM native-image
- create locally the
graalvm-native-image container using graalvm-native-image/build.sh. This container will be used to build the native image.
- run sbt
- run in sbt:
dockerGraalvmNative: this will generate the docker-graalvm-native-test container
- run in sbt:
docker:publishLocal: this will generate the docker-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