From 0512395b596c9e5d48a48b913e65038ea7941c47 Mon Sep 17 00:00:00 2001 From: Trey Valenta Date: Mon, 14 Aug 2023 16:19:21 -0700 Subject: [PATCH] Add apt lists clean up to python Dockerfile (#7803) Deletes the apt lists for the python image. cc dependabot/dependabot-core#946 dependabot/dependabot-core#3896 --- python/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/Dockerfile b/python/Dockerfile index d262fe3b959..9ced71c6191 100644 --- a/python/Dockerfile +++ b/python/Dockerfile @@ -43,7 +43,8 @@ RUN apt-get update \ libxml2-dev \ libxmlsec1-dev \ libgeos-dev \ - python3-enchant + python3-enchant \ + && rm -rf /var/lib/apt/lists/* COPY --chown=dependabot:dependabot python/helpers /opt/python/helpers USER root @@ -112,7 +113,8 @@ RUN apt-get update \ libxml2-dev \ libxmlsec1-dev \ libgeos-dev \ - python3-enchant + python3-enchant \ + && rm -rf /var/lib/apt/lists/* ### PYTHON COPY --chown=dependabot:dependabot python/helpers /opt/python/helpers