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.
This commit is contained in:
Kim Alvefur 2021-07-30 16:37:54 +02:00
parent 274efd9a32
commit e4e31976f3
1 changed files with 1 additions and 1 deletions

View File

@ -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