Hardened Liberica JDK Images
bellsoft/hardened-liberica-runtime-container provides near-zero-CVE nonroot
and distroless Liberica JDK images (see BellSoft Hardened Images).
Tag pattern:
[jdk type]-[java version]-[crac]-[cds][-nonroot|-distroless]-[libc type]| Example tag | Meaning |
|---|---|
jdk-17-nonroot-glibc | nonroot JDK 17, glibc |
jre-21-crac-distroless-glibc | distroless JRE 21 with CRaC, glibc |
Version
- 26.0.1 (latest)
- 26
- 25.0.3
- 25.0.2
- 25.0.1
- 25
- 24.0.2
- 24
- 21.0.11
- 21.0.10
- 21.0.9
- 21.0.8
- 21.0.7
- 21
- 17.0.19
- 17.0.18
- 17
- 11.0.31
- 11.0.30
- 11
- 8
No matching version
Multi-stage build — compile in a nonroot image, run in distroless:
FROM bellsoft/hardened-liberica-runtime-container:jdk-11-nonroot-glibc AS builder
COPY <<'EOF' HelloBellsoft.javapublic class HelloBellsoft { public static void main(String[] args) { System.out.println("Hello BellSoft!"); }}EOF
RUN javac HelloBellsoft.java
FROM bellsoft/hardened-liberica-runtime-container:jre-11-distroless-glibc
COPY --from=builder /home/appuser/HelloBellsoft.class .
ENTRYPOINT [ "/usr/bin/java" ]CMD [ "HelloBellsoft"]