yarn 1.22.22
بيئة تشغيل · Build tool · standard · v1.22.22
صورة أساس لـ Node مع Yarn مُثبّت مسبقًا، تُستخدم كمرحلة بناء لمشاريع Yarn. الإصداران 1 (الكلاسيكي) و4 (berry).
خط الإصدار
يعيش الخط الأحدث في الصفحة الأساسية؛ وللخطوط الأقدم صفحاتها الخاصة لتتمكّن من تثبيت ذلك الإصدار بالضبط والتحقق منه.
تقرير الأمان (Trivy)
تقرير الأمان (Trivy) · yarn 1.22.22
الإصدارات المنشورة
3 وسومكل وسم هو فهرس متعدد المعماريات (amd64 + arm64) مثبّت بالبصمة. موسوم بالإصدار، وليس أبدًا :latest.
استخدمها كصورة أساس
أشِر إليها في سطر FROM داخل ملف Dockerfile. تعمل بدون صلاحيات الجذر، بنظام ملفات جذر للقراءة فقط، ومبنية لـ amd64 و arm64.
FROM ghcr.io/quenchworks/images/yarn:1.22.22أو اسحبها مباشرة
docker pull ghcr.io/quenchworks/images/yarn:1.22.22- خط الإصدار
- 1.22.22
- الخط الأحدث
- 4.17.0, 3.8.7, 1.22.22
- المعماريات
- amd64, arm64
- تعمل كـ
- nonroot (uid 1001)
- نظام الملفات الجذر
- للقراءة فقط
- الرخصة
- BSD-2-Clause
تحقّق من سلسلة التوريد
هذه الصورة موقّعة بـ cosign وتحمل قائمة مكوّنات SPDX SBOM وشهادة منشأ بناء SLSA على البصمة نفسها. تحقّق من الثلاثة جميعها قبل أن تبني عليها:
# 1. signature — built and signed by QuenchWorks CI
cosign verify ghcr.io/quenchworks/images/yarn:1.22.22 \
--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/yarn:1.22.22 \
--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/yarn:1.22.22 \
--certificate-identity-regexp 'https://github.com/quenchworks/.+' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comراجع دليل SBOM والمنشأ لقراءة قائمة المكوّنات واستخدام هذه الفحوص في التكامل المستمر.
أفضل ممارسة لملف Dockerfile لـ 1.22.22
Yarn Classic leads: preinstalled on the yarn base, it installs the production-only dependency set and builds, then a clean node base receives only the prod node_modules and the built output.
# Build stage: Yarn (Classic) installs the full set and builds.FROM ghcr.io/quenchworks/images/yarn:1.22.22 AS buildUSER rootWORKDIR /appENV YARN_CACHE_FOLDER=/tmp/yarn
COPY package.json yarn.lock ./RUN ["yarn", "install", "--frozen-lockfile"]COPY . .RUN ["yarn", "build"]
# Prod-deps stage: a clean install of production dependencies only.FROM ghcr.io/quenchworks/images/yarn:1.22.22 AS prod-depsUSER rootWORKDIR /appENV YARN_CACHE_FOLDER=/tmp/yarnCOPY package.json yarn.lock ./RUN ["yarn", "install", "--frozen-lockfile", "--production"]
# Runtime stage: prod node_modules + built dist on a slim node base, nonroot.FROM ghcr.io/quenchworks/images/node:26.5.0 AS runtimeWORKDIR /appENV NODE_ENV=productionCOPY --from=prod-deps /app/node_modules ./node_modulesCOPY --from=build /app/dist ./distCOPY --from=build /app/package.json ./package.jsonUSER 1001EXPOSE 3000CMD ["node", "dist/server.js"]هذا الملف Dockerfile مثبّت على خط 1.22.22 . للاطّلاع على شرح سطرًا بسطر وعلى متغيّرات المنظومات (npm/Yarn، pip/uv/Poetry، Maven/Gradle)، راجع دليل ابنِ تطبيق Node.
المشروع المنبع: https://yarnpkg.com