From 212de80da1bfe0e9a7115e6b7b20aeb268dbc4ce Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 30 Jul 2021 20:39:41 +0200 Subject: [PATCH 1/2] Dockerfile: Tell apt to remove left-over config Inspection of the resulting image shows that python3 is not fully removed, this takes care of that. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6c3b419..ab1a45e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,7 @@ RUN apt-get update \ libcap2-bin build-essential\ && c_rehash \ && ansible-playbook -c local -i localhost, --extra-vars "ansible_python_interpreter=/usr/bin/python2" /opt/ansible/snikket.yml \ - && apt-get remove -y \ + && apt-get remove --purge -y \ ansible \ software-properties-common \ gpg gpg-agent \ From 8e3c28dd7370730ecf32c0231dacef4082f7ca4c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 30 Jul 2021 20:41:46 +0200 Subject: [PATCH 2/2] Dockerfile: Explicitly remove python3 This and the previous commit ensures these are completely removed. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index ab1a45e..0e997fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,6 +34,7 @@ RUN apt-get update \ gpg gpg-agent \ python-passlib python3-passlib \ mercurial libcap2-bin build-essential \ + python3 python3.7-minimal \ && apt-get autoremove -y \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /var/cache/*