Small Docker image with Java Runtime (JRE)
To build Docker image, you must ensure that Docker is correctly installed and your current user have permission to use it.
#> chmod +x ./build-all.bash
#> ./build-all.bash
The generated images contain the libraries needed for the Java Runtime to run, the JRE itself, and bash
/ sh
shell, nothing else.
The JRE generated from the JDK contains all the java.*
modules as well as the jdk.unsupported
and jdk.unsupported.desktop
modules.
#> docker run -it --rm thibaultmeyer/distroless-java:oracle-19 java -version