Eclipse Temurin
A free, widely used JDK distribution built from OpenJDK by the Eclipse Adoptium project, also published as official container images.
In more detail
The course Dockerfile builds with eclipse-temurin:21-jdk and runs with eclipse-temurin:21-jre. The jdk tag contains the compiler and tools; the jre tag contains only what is needed to run. Pin the tag, or better the digest, and update it deliberately to pick up security patches.
Examples
FROM eclipse-temurin:21-jdk AS buildFROM eclipse-temurin:21-jreRelated terms
- JDK — The Java Development Kit: the Java runtime plus the tools that build programs, such as the compiler javac, the disassembler javap and the jar tool.
- JRE — The JVM plus the Java standard library: everything needed to run a compiled Java program, but no compiler.
- JDK distribution — A particular vendor's packaged build of the JDK, with that vendor's support terms and update schedule.
- base image — The image a Dockerfile starts from with FROM, which supplies the operating system files and often a language runtime.
- tag — A human-readable label such as 3.20 or latest attached to an image in a repository, which can be moved to point at a different image.
Taught in
- Packaging Into A Container — Modern Java: Virtual Threads & High-Throughput Services