docker-graalvm-native icon indicating copy to clipboard operation
docker-graalvm-native copied to clipboard

Docker + GraalVM native-image

  1. create locally the graalvm-native-image container using graalvm-native-image/build.sh. This container will be used to build the native image.
  2. run sbt
  3. run in sbt: dockerGraalvmNative: this will generate the docker-graalvm-native-test container
  4. run in sbt: docker:publishLocal: this will generate the docker-test continer
  5. run in shell: time docker run --rm docker-graalvm-native-test
  6. run in shell: time docker run --rm docker-test and compare the timing
  7. run docker images | grep docker- and compare the image size