rust
بيئة تشغيل · Language runtime · standard · v1.97.1
سلسلة أدوات Rust مُحصّنة (cargo بالإضافة إلى rustc) لمراحل البناء؛ اشحن الملف التنفيذي المُجمّع على صورة static الأساسية. أحدث 3 إصدارات مستقرة (1.94/1.95/1.96).
تقرير الأمان (Trivy)
تقرير الأمان (Trivy) · rust 1.97.1
الإصدارات المنشورة
1 وسمكل وسم هو فهرس متعدد المعماريات (amd64 + arm64) مثبّت بالبصمة. موسوم بالإصدار، وليس أبدًا :latest.
| الإصدار | الحجم | النشر | البصمة |
|---|---|---|---|
| 1.97.1الأحدث | 363.4 MB | 2026-07-28 | sha256:c5f367e37c0e… |
استخدمها كصورة أساس
أشِر إليها في سطر FROM داخل ملف Dockerfile. تعمل بدون صلاحيات الجذر، بنظام ملفات جذر للقراءة فقط، ومبنية لـ amd64 و arm64.
FROM ghcr.io/quenchworks/images/rust:1.97.1أو اسحبها مباشرة
docker pull ghcr.io/quenchworks/images/rust:1.97.1- خط الإصدار
- 1.97.1
- الخط الأحدث
- 1.97.1
- المعماريات
- amd64, arm64
- تعمل كـ
- nonroot (uid 1001)
- نظام الملفات الجذر
- للقراءة فقط
- الرخصة
- MIT OR Apache-2.0
تحقّق من سلسلة التوريد
هذه الصورة موقّعة بـ cosign وتحمل قائمة مكوّنات SPDX SBOM وشهادة منشأ بناء SLSA على البصمة نفسها. تحقّق من الثلاثة جميعها قبل أن تبني عليها:
# 1. signature — built and signed by QuenchWorks CI
cosign verify ghcr.io/quenchworks/images/rust:1.97.1 \
--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/rust:1.97.1 \
--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/rust:1.97.1 \
--certificate-identity-regexp 'https://github.com/quenchworks/.+' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comراجع دليل SBOM والمنشأ لقراءة قائمة المكوّنات واستخدام هذه الفحوص في التكامل المستمر.
أفضل ممارسة لملف Dockerfile لـ 1.97.1
Compile a release binary against the musl target on the rust image so it links statically, then copy it onto the tiny static base. The Cargo home points at /tmp for the read-only root filesystem.
# Build stage: compile a static (musl) release binary.FROM ghcr.io/quenchworks/images/rust:1.97.1 AS buildUSER rootWORKDIR /srcENV CARGO_HOME=/tmp/cargo
RUN ["rustup", "target", "add", "x86_64-unknown-linux-musl"]COPY Cargo.toml Cargo.lock ./COPY src ./srcRUN ["cargo", "build", "--release", "--target", "x86_64-unknown-linux-musl"]
# Runtime stage: just the binary on the tiny static base, nonroot.FROM ghcr.io/quenchworks/images/staticCOPY --from=build /src/target/x86_64-unknown-linux-musl/release/app /appUSER 1001EXPOSE 8080ENTRYPOINT ["/app"]هذا الملف Dockerfile مثبّت على خط 1.97.1 . للاطّلاع على شرح سطرًا بسطر وعلى متغيّرات المنظومات (npm/Yarn، pip/uv/Poetry، Maven/Gradle)، راجع دليل ابنِ ملفًا تنفيذيًا بـ Go أو Rust.
المشروع المنبع: https://github.com/rust-lang/rust