jre 17.0.19
بيئة تشغيل · Runtime base · standard · v17.0.19
بيئة تشغيل Java مُحصّنة (JRE) لتشغيل ملف jar مبني، بدون مُترجِم. اقرنها مع صورة البناء jdk أو maven أو gradle. إصدارات LTS رقم 17/21/25.
خط الإصدار
يعيش الخط الأحدث في الصفحة الأساسية؛ وللخطوط الأقدم صفحاتها الخاصة لتتمكّن من تثبيت ذلك الإصدار بالضبط والتحقق منه.
تقرير الأمان (Trivy)
تقرير الأمان (Trivy) · jre 17.0.19
الإصدارات المنشورة
3 وسومكل وسم هو فهرس متعدد المعماريات (amd64 + arm64) مثبّت بالبصمة. موسوم بالإصدار، وليس أبدًا :latest.
استخدمها كصورة أساس
أشِر إليها في سطر FROM داخل ملف Dockerfile. تعمل بدون صلاحيات الجذر، بنظام ملفات جذر للقراءة فقط، ومبنية لـ amd64 و arm64.
FROM ghcr.io/quenchworks/images/jre:17.0.19أو اسحبها مباشرة
docker pull ghcr.io/quenchworks/images/jre:17.0.19- خط الإصدار
- 17.0.19
- الخط الأحدث
- 21.0.11, 17.0.19, 25.0.4
- المعماريات
- amd64, arm64
- تعمل كـ
- nonroot (uid 1001)
- نظام الملفات الجذر
- للقراءة فقط
- الرخصة
- GPL-2.0-with-classpath-exception
تحقّق من سلسلة التوريد
هذه الصورة موقّعة بـ cosign وتحمل قائمة مكوّنات SPDX SBOM وشهادة منشأ بناء SLSA على البصمة نفسها. تحقّق من الثلاثة جميعها قبل أن تبني عليها:
# 1. signature — built and signed by QuenchWorks CI
cosign verify ghcr.io/quenchworks/images/jre:17.0.19 \
--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:17.0.19 \
--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:17.0.19 \
--certificate-identity-regexp 'https://github.com/quenchworks/.+' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comراجع دليل SBOM والمنشأ لقراءة قائمة المكوّنات واستخدام هذه الفحوص في التكامل المستمر.
أفضل ممارسة لملف Dockerfile لـ 17.0.19
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:17.0.19 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:17.0.19 AS runtimeWORKDIR /appCOPY --from=build /app/target/*.jar /app/app.jarUSER 1001EXPOSE 8080ENTRYPOINT ["java", "-Djava.io.tmpdir=/tmp", "-jar", "/app/app.jar"]هذا الملف Dockerfile مثبّت على خط 17.0.19 . للاطّلاع على شرح سطرًا بسطر وعلى متغيّرات المنظومات (npm/Yarn، pip/uv/Poetry، Maven/Gradle)، راجع دليل ابنِ تطبيق Java.
المشروع المنبع: https://openjdk.org