تخطَّ إلى المحتوى
QuenchWorks

rust

بيئة تشغيل · Language runtime · standard · v1.97.1

A+بدون صلاحيات الجذرموقّعة بـ cosignSPDX SBOMمنشأ SLSAamd64 · arm64

سلسلة أدوات Rust مُحصّنة (cargo بالإضافة إلى rustc) لمراحل البناء؛ اشحن الملف التنفيذي المُجمّع على صورة static الأساسية. أحدث 3 إصدارات مستقرة (1.94/1.95/1.96).

موقّعة
cosign بدون مفتاح
SBOM
SPDX، على البصمة
المنشأ
بناء SLSA
المعماريات
amd64، arm64
تعمل كـ
nonroot (uid 1001)
حجم الصورة
363.4 MB
آخر إعادة بناء
2026-07-28

تقرير الأمان (Trivy)

A+· 100/1000 ثغرة قابلة للإصلاح
0
حرجة
0
عالية
0
متوسطة
0
منخفضة
0
غير معروفة

تقرير الأمان (Trivy) · rust 1.97.1

الإصدارات المنشورة

1 وسم

كل وسم هو فهرس متعدد المعماريات (amd64 + arm64) مثبّت بالبصمة. موسوم بالإصدار، وليس أبدًا :latest.

الإصدارالحجمالنشرالبصمة
1.97.1الأحدث363.4 MB2026-07-28sha256: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.

ghcr.io/quenchworks/images/rust:1.97.1363.4 MBأُعيد بناؤها 2 days ago
# Build stage: compile a static (musl) release binary.
FROM ghcr.io/quenchworks/images/rust:1.97.1 AS build
USER root
WORKDIR /src
ENV CARGO_HOME=/tmp/cargo
RUN ["rustup", "target", "add", "x86_64-unknown-linux-musl"]
COPY Cargo.toml Cargo.lock ./
COPY src ./src
RUN ["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/static
COPY --from=build /src/target/x86_64-unknown-linux-musl/release/app /app
USER 1001
EXPOSE 8080
ENTRYPOINT ["/app"]

هذا الملف Dockerfile مثبّت على خط 1.97.1 . للاطّلاع على شرح سطرًا بسطر وعلى متغيّرات المنظومات (npm/Yarn، pip/uv/Poetry، Maven/Gradle)، راجع دليل ابنِ ملفًا تنفيذيًا بـ Go أو Rust.

المشروع المنبع: https://github.com/rust-lang/rust