poetry
بيئة تشغيل · Build tool · standard · v2.4.1
صورة أساس لـ Python مع Poetry لإدارة الاعتماديات والتحزيم، تُستخدم كمرحلة بناء لمشاريع Python. الإصدار 2.
تقرير الأمان (Trivy)
تقرير الأمان (Trivy) · poetry 2.4.1
الإصدارات المنشورة
1 وسمكل وسم هو فهرس متعدد المعماريات (amd64 + arm64) مثبّت بالبصمة. موسوم بالإصدار، وليس أبدًا :latest.
| الإصدار | الحجم | النشر | البصمة |
|---|---|---|---|
| 2.4.1الأحدث | 47.2 MB | 2026-07-26 | sha256:f438a2543215… |
استخدمها كصورة أساس
أشِر إليها في سطر FROM داخل ملف Dockerfile. تعمل بدون صلاحيات الجذر، بنظام ملفات جذر للقراءة فقط، ومبنية لـ amd64 و arm64.
FROM ghcr.io/quenchworks/images/poetry:2.4.1أو اسحبها مباشرة
docker pull ghcr.io/quenchworks/images/poetry:2.4.1- خط الإصدار
- 2.4.1
- الخط الأحدث
- 2.4.1
- المعماريات
- amd64, arm64
- تعمل كـ
- nonroot (uid 1001)
- نظام الملفات الجذر
- للقراءة فقط
- الرخصة
- MIT
تحقّق من سلسلة التوريد
هذه الصورة موقّعة بـ cosign وتحمل قائمة مكوّنات SPDX SBOM وشهادة منشأ بناء SLSA على البصمة نفسها. تحقّق من الثلاثة جميعها قبل أن تبني عليها:
# 1. signature — built and signed by QuenchWorks CI
cosign verify ghcr.io/quenchworks/images/poetry:2.4.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/poetry:2.4.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/poetry:2.4.1 \
--certificate-identity-regexp 'https://github.com/quenchworks/.+' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comراجع دليل SBOM والمنشأ لقراءة قائمة المكوّنات واستخدام هذه الفحوص في التكامل المستمر.
أفضل ممارسة لملف Dockerfile لـ 2.4.1
Poetry leads: it installs the locked, production-only dependency set into an in-project venv, then a clean python base receives that venv and the app. Poetry never ships in the runtime image.
# Build stage: Poetry installs the main group into an in-project venv.FROM ghcr.io/quenchworks/images/poetry:2.4.1 AS buildUSER rootWORKDIR /appENV POETRY_VIRTUALENVS_IN_PROJECT=true \ POETRY_NO_INTERACTION=1 \ POETRY_CACHE_DIR=/tmp/poetry
COPY pyproject.toml poetry.lock ./RUN ["poetry", "install", "--only", "main", "--no-root"]COPY . .RUN ["poetry", "install", "--only", "main"]
# Runtime stage: copy the venv + app onto a clean python base, nonroot.FROM ghcr.io/quenchworks/images/python:3.14.6 AS runtimeWORKDIR /appENV PATH="/app/.venv/bin:$PATH" \ PYTHONUNBUFFERED=1COPY --from=build /app/.venv /app/.venvCOPY --from=build /app /appUSER 1001EXPOSE 8000CMD ["python", "-m", "app"]هذا الملف Dockerfile مثبّت على خط 2.4.1 . للاطّلاع على شرح سطرًا بسطر وعلى متغيّرات المنظومات (npm/Yarn، pip/uv/Poetry، Maven/Gradle)، راجع دليل ابنِ تطبيق Python.
المشروع المنبع: https://python-poetry.org