Skip to content

thibaultmeyer/docker-distroless-java

Repository files navigation

Docker distroless Java

Small Docker image with Java Runtime (JRE)


Build

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

What is in the generated images?

The generated images contain the libraries needed for the Java Runtime to run, the JRE itself, and bash / sh shell, nothing else.

Modules

The JRE generated from the JDK contains all the java.* modules as well as the jdk.unsupported and jdk.unsupported.desktop modules.

Usage

#> docker run -it --rm thibaultmeyer/distroless-java:oracle-19 java -version