From 18fe90351f69033efe98708b2157392318024fa8 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 11 Oct 2024 05:39:45 +0000 Subject: [PATCH] fix: Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN11-E2FSPROGS-2628459 - https://snyk.io/vuln/SNYK-DEBIAN11-E2FSPROGS-2628459 - https://snyk.io/vuln/SNYK-DEBIAN11-E2FSPROGS-2628459 - https://snyk.io/vuln/SNYK-DEBIAN11-E2FSPROGS-2628459 - https://snyk.io/vuln/SNYK-DEBIAN11-E2FSPROGS-2628459 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e1943a8139..4b6ea6f1af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -75,7 +75,7 @@ RUN cd crates/stark_hash_python \ ####################################### # Stage 2: Build the Python libraries # ####################################### -FROM python:3.9-slim-bullseye AS python-builder +FROM python:3.12.7-slim-bullseye AS python-builder ARG TARGETARCH RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y libgmp-dev gcc && rm -rf /var/lib/apt/lists/* @@ -97,7 +97,7 @@ RUN find ${PY_PATH} -type d -a -name test -exec rm -rf '{}' + \ ####################### # Note that we're explicitly using the Debian bullseye image to make sure we're # compatible with the Rust builder we've built the pathfinder executable in. -FROM python:3.9-slim-bullseye AS runner +FROM python:3.12.7-slim-bullseye AS runner ARG TARGETARCH RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y libgmp10 tini && rm -rf /var/lib/apt/lists/*