jre
Entorno de ejecución · Runtime base · standard · v25.0.4
Runtime de Java reforzado (JRE) para ejecutar un jar ya compilado, sin compilador. Combínalo con la imagen de compilación jdk, maven o gradle. 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) · jre 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/jre:25.0.4O descárgala directamente
docker pull ghcr.io/quenchworks/images/jre:25.0.4- Línea de versión
- 25.0.4
- Línea más reciente
- 21.0.11, 17.0.19, 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/jre: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/jre: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/jre: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
jre is a runtime base you copy a built jar onto, not something you compile in. Here the jar is packaged with the matching JDK in the build stage and the jre image is the final stage that runs it.
# Build stage: compile and package the jar with the full JDK.FROM ghcr.io/quenchworks/images/jdk:25.0.4 AS buildUSER rootWORKDIR /appENV MAVEN_OPTS=-Dmaven.repo.local=/tmp/.m2
COPY pom.xml ./RUN ["./mvnw", "-B", "-Dmaven.repo.local=/tmp/.m2", "dependency:go-offline"]COPY src ./srcRUN ["./mvnw", "-B", "-o", "-Dmaven.repo.local=/tmp/.m2", "package", "-DskipTests"]
# This image is the final runtime stage: run the jar, nonroot.FROM ghcr.io/quenchworks/images/jre:25.0.4 AS runtimeWORKDIR /appCOPY --from=build /app/target/*.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