Hardened Liberica NIK Images
bellsoft/hardened-liberica-native-image-kit-container provides near-zero-CVE
nonroot and distroless variants (see BellSoft Hardened Images).
Tag pattern:
jdk-<java_version>-nik-<nik_version>[-nonroot|-distroless]-<libc>Version
- 25 (latest)
- 24
- 23
- 22
- 21
- 17
- 11
No matching version
NIK version
- 25.0.3 (latest)
- 25.0.2
- 25.0.1
- 25.0.0
- 25.0
- 25
- 24.2.2
- 24.2.1
- 24.2
- 24.1.2
- 24.1
- 24.0.2
- 24.0
- 24
- 23.1.11
- 23.1.10
- 23.1.9
- 23.1.8
- 23.1.7
- 23.1
- 23.0.12
- 23.0.11
- 23.0.10
- 23.0.9
- 23.0.8
- 23.0
- 23
- 22.3.5
- 22.3.2
- 22.3
- 22
No matching NIK version
Tag examples:
jdk-17-nik-23-musl— standard hardened image, NIK 23 on JDK 17, musljdk-25-nik-25-distroless-glibc— distroless hardened image, NIK 25, glibc
Multi-stage build — compile a native binary with NIK, run it in a distroless base:
FROM bellsoft/hardened-liberica-native-image-kit-container:jdk-25-nik-25-nonroot-musl AS builder
COPY <<'EOF' HelloBellsoft.javapublic class HelloBellsoft { public static void main(String[] args) { System.out.println("Hello BellSoft!"); }}EOF
RUN javac HelloBellsoft.javaRUN native-image --no-fallback -o hello-bellsoft HelloBellsoft
FROM bellsoft/hardened-base:distroless-musl
COPY --from=builder /home/appuser/hello-bellsoft .
ENTRYPOINT [ "/home/appuser/hello-bellsoft" ]