railwayapp / nixpacks

App source + Nix packages + Docker = Image
https://nixpacks.com
MIT License
2.67k stars 244 forks source link

Scala provider sbt graal native image support #790

Open yzia2000 opened 1 year ago

yzia2000 commented 1 year ago

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.

yzia2000 commented 1 year ago

We should probably wait for this to resolve https://github.com/railwayapp/nixpacks/issues/788