You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a docker image to run a java program, it is desirable to us that the image is as small as possible. This is to speed up build and launch times mainly. This is especially important when caching is not able to help such as on ephemeral build instances or production execution environments. The build image when we upgraded from 11 to 17 is about twice the size. It would be nice if the image was similar to the 11 image, perhaps by creating a JRE only java 17 image such as 17-jre-slim. This JRE image is what we used when we were running java 11.
Upstream does not distribute an official JRE package that I am aware of, nor do they have documentation for either what bits from the official downloads should be kept or what bits should be removed to create an official JRE package, so this will not involve that. (Folks wishing to create a JRE based on OpenJDK 12+ are likely better off playing with jlink anyhow to create their own custom minimal JRE via a multi-stage build or similar -- I've personally done so via the existing Oracle Linux image with a multi-stage build copying the resulting minimal JRE into a Debian-based image with great success.)
When creating a docker image to run a java program, it is desirable to us that the image is as small as possible. This is to speed up build and launch times mainly. This is especially important when caching is not able to help such as on ephemeral build instances or production execution environments. The build image when we upgraded from 11 to 17 is about twice the size. It would be nice if the image was similar to the 11 image, perhaps by creating a JRE only java 17 image such as
17-jre-slim
. This JRE image is what we used when we were running java 11.11 vs 17 image size comparison:
Thank you!
The text was updated successfully, but these errors were encountered: