Updates the JDK and JRE used to build the container images to Java 25, and enables the compact object headers feature (https://openjdk.org/jeps/519) for reduced CPU and memory overhead.
We will continue to build and test the application itself against Java 21 for the time being, and it will continue to be executable on Java 21 as well. This change purely affects the default image we distribute.
Signed-off-by: nscuro <nscuro@protonmail.com>
The new variants will be published *in addition* to the existing variant. Given enough positive user feedback, we may deprecate the Debian-based variants. Until then, Alpine variants are to be considered experimental.
Note that DT v5 has already switched to exclusively Alpine base images: https://github.com/DependencyTrack/hyades-apiserver/pull/1206
New image variants are distinguished by a `-alpine` suffix in the tag, e.g.:
* dependencytrack/apiserver:latest-alpine
* dependencytrack/apiserver:4.14.0-alpine
* dependencytrack/apiserver:snapshot-alpine
The new images further use `jdeps` and `jlink` to create a minimal JRE, with only those Java modules DT needs.
As a result, `-alpine` images are about 200MB smaller than their Debian counterparts.
Signed-off-by: nscuro <nscuro@protonmail.com>