jdk
Entorno de ejecución · Language runtime · standard · v25.0.4
OpenJDK reforzado con el compilador javac, una imagen base de etapa de compilación de la que hacer FROM para aplicaciones Java. Líneas LTS 17/21/25.
Línea de versión
La línea más reciente vive en la página base; las líneas más antiguas tienen su propia página para que puedas fijar y verificar exactamente esa versión.
Informe de seguridad (Trivy)
Informe de seguridad (Trivy) · jdk 25.0.4
Versiones publicadas
3 etiquetasCada etiqueta es un índice multiarquitectura (amd64 + arm64) fijado por digest. Etiquetada por versión, nunca :latest.
Úsala como imagen base
Refiérela en la línea FROM de tu Dockerfile. Sin root, sistema de archivos raíz de solo lectura, compilada para amd64 y arm64.
FROM ghcr.io/quenchworks/images/jdk:25.0.4O descárgala directamente
docker pull ghcr.io/quenchworks/images/jdk:25.0.4- Línea de versión
- 25.0.4
- Línea más reciente
- 17.0.19, 21.0.11, 25.0.4
- Arquitecturas
- amd64, arm64
- Se ejecuta como
- nonroot (uid 1001)
- Sistema de archivos raíz
- solo lectura
- Licencia
- GPL-2.0-with-classpath-exception
Verifica la cadena de suministro
Esta imagen está firmada con cosign y lleva un SBOM SPDX y una atestación de procedencia de compilación SLSA en el mismo digest. Comprueba las tres antes de construir sobre ella:
# 1. signature — built and signed by QuenchWorks CI
cosign verify ghcr.io/quenchworks/images/jdk:25.0.4 \
--certificate-identity-regexp 'https://github.com/quenchworks/.+' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
# 2. SLSA build provenance — which workflow built it, from what
cosign verify-attestation --type https://slsa.dev/provenance/v1 ghcr.io/quenchworks/images/jdk:25.0.4 \
--certificate-identity-regexp 'https://github.com/quenchworks/.+' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
# 3. SPDX SBOM — the package inventory
cosign verify-attestation --type https://spdx.dev/Document/v2.3 ghcr.io/quenchworks/images/jdk:25.0.4 \
--certificate-identity-regexp 'https://github.com/quenchworks/.+' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comConsulta la guía de SBOM y procedencia para leer el SBOM y usar estas comprobaciones en CI.
Dockerfile recomendado para 25.0.4
Compile and package the jar with the full JDK in the build stage, then run it on the slim jre base. The compiler and build outputs stay behind; only the jar ships.
# Build stage: compile and package the jar with the full JDK.FROM ghcr.io/quenchworks/images/jdk:25.0.4 AS buildUSER rootWORKDIR /app
COPY . .RUN ["javac", "-d", "/app/out", "@sources.txt"]RUN ["jar", "--create", "--file", "/app/app.jar", "--main-class", "App", "-C", "/app/out", "."]
# Runtime stage: run the jar on the slim JRE base, nonroot.FROM ghcr.io/quenchworks/images/jre:25.0.4 AS runtimeWORKDIR /appCOPY --from=build /app/app.jar /app/app.jarUSER 1001EXPOSE 8080ENTRYPOINT ["java", "-Djava.io.tmpdir=/tmp", "-jar", "/app/app.jar"]Este Dockerfile está fijado a la línea 25.0.4 . Para el recorrido línea por línea y las variantes de ecosistema (npm/Yarn, pip/uv/Poetry, Maven/Gradle), consulta la guía Crear una app de Java.
Proyecto original: https://openjdk.org