jeanblanchard / docker-java

Minimal Docker image with Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minimal Docker image with Java

⚠️ Deprecated: This is not maintained any more, and references Oracle JDK, which no longer allows free usage and redistribution.

Alternatives exist, such as Eclipe Adoptium Temurin (Formerly AdoptOpenJDK)

Basic Docker image to run Java applications. This is based on Alpine Linux to keep the size minimal (about 25% of an ubuntu-based image).

Tags

Additionally, tags are created for each oracle release (e.g. 8u191, jdk-8u191 or jre-8u191).

Note: Sometimes Oracle releases two versions at the same time : a CPU (Critical Patch Update) with only critical bug fixes, and a PSU (Patch Set Update) with additional "non-critical fixes". In this case, the CPU will be the default, as recommended by oracle. If needed, PSU releases are still accessible, by using their specific release tag (e.g jdk-8u192)

Usage

Example:

docker run -it --rm jeanblanchard/java:8 java -version

About

Minimal Docker image with Java

License:MIT License


Languages

Language:Dockerfile 95.3%Language:Shell 4.7%