fix(06-06): patch OpenSSL CVE-2026-31789 — add apt-get upgrade to runtime Dockerfile stage
Apply all available OS security updates in the runtime image stage to pull in openssl 3.5.5-1~deb13u2 (fixes CVE-2026-31789 heap buffer overflow). Three CVEs with no upstream fix (Mesa will_not_fix, perl-base affected) documented and suppressed in .trivyignore with rationale. Trivy rescan exits 0 (D-10 gate passes). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
ea8df02491
commit
382f9bec6b
+6
-4
@@ -13,10 +13,12 @@ RUN pip install --no-cache-dir --prefix=/install -r requirements.txt
|
||||
# Stage 2: runtime — lean image with only what the app needs at runtime
|
||||
FROM python:3.12-slim AS runtime
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
tesseract-ocr \
|
||||
libgl1 \
|
||||
libglib2.0-0 \
|
||||
RUN apt-get update \
|
||||
&& apt-get upgrade -y --no-install-recommends \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
tesseract-ocr \
|
||||
libgl1 \
|
||||
libglib2.0-0 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=builder /install /usr/local
|
||||
|
||||
Reference in New Issue
Block a user