Open yzia2000 opened 1 year ago
Currently the scala sbt provider produces a jvm image. It would be nice to also have support to produce graal vm images.
Maybe an environment variable like USE_NATIVE_IMAGE can be used here.
USE_NATIVE_IMAGE
Graal has a much smaller binary foot print and does not require jvm in the running image. This can result in significantly smaller image sizes.
Graal is also faster and less memory consuming for some workloads.
Will post a PR for this.
We should probably wait for this to resolve https://github.com/railwayapp/nixpacks/issues/788
Feature request
Currently the scala sbt provider produces a jvm image. It would be nice to also have support to produce graal vm images.
Maybe an environment variable like
USE_NATIVE_IMAGE
can be used here.Motivation
Graal has a much smaller binary foot print and does not require jvm in the running image. This can result in significantly smaller image sizes.
Graal is also faster and less memory consuming for some workloads.
Contribution
Will post a PR for this.