From 8081d87d994a24de78d3cd55a58898a8544f5708 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Wed, 8 May 2024 14:30:38 +0200 Subject: [PATCH] remove system python3 --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 29704ed..9deca5d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,9 @@ FROM ubuntu:24.04 ENV DEBIAN_FRONTEND=noninteractive # hadolint ignore=DL3008,DL3028 -RUN apt-get update && \ - apt-get -y --no-install-recommends install \ +RUN apt-get update \ + && apt remove python3 -y \ + && apt-get -y --no-install-recommends install \ build-essential \ wget \ rsync \ @@ -17,5 +18,5 @@ RUN apt-get update && \ s-nail \ python3-pip \ && pip3 install --no-cache-dir --break-system-packages pylint==3.1.0 \ - && apt-get clean && \ - rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/* + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*