From e4e31976f30e7fa639baac31ef9096c387da6c8a Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 30 Jul 2021 16:37:54 +0200 Subject: [PATCH] Dockerfile: Remove apt lists at the very end Doing this after the Ansible step should ensure that they are gone even if Ansible happens to notice that they're missing and re-fetch them. This also fixes that Ansible is unable to install Lua if Ansible is switched over to Python 3. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b7723a6..6c3b419 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,6 @@ RUN apt-get update \ gpg gpg-agent \ ansible python-passlib python3-passlib \ libcap2-bin build-essential\ - && rm -rf /var/lib/apt/lists/* \ && c_rehash \ && ansible-playbook -c local -i localhost, --extra-vars "ansible_python_interpreter=/usr/bin/python2" /opt/ansible/snikket.yml \ && apt-get remove -y \ @@ -36,6 +35,7 @@ RUN apt-get update \ python-passlib python3-passlib \ mercurial libcap2-bin build-essential \ && apt-get autoremove -y \ + && rm -rf /var/lib/apt/lists/* \ && rm -rf /var/cache/* RUN echo "Snikket $BUILD_SERIES $BUILD_ID" > /usr/lib/prosody/prosody.version