From f665a0b8f8ce091f9d9e58deb81dbdce5fa83ff7 Mon Sep 17 00:00:00 2001 From: Trey Valenta Date: Fri, 11 Aug 2023 14:26:43 -0700 Subject: [PATCH] Add apt lists clean up to python Dockerfile 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 d262fe3b95..9ced71c619 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