Clean cache for apt to get some space back form the image

This commit is contained in:
notthinkingtinker 2022-09-25 19:38:59 +03:00
parent fc6a3f7cea
commit 5a83d42151

View File

@ -16,7 +16,7 @@ RUN apt-get -y update && \
git \ git \
nmap \ nmap \
sshpass sshpass
RUN apt-get clean
# let's install ansible using pip as root # let's install ansible using pip as root
# this will give a fat red warning at runtime but is intended this way. # this will give a fat red warning at runtime but is intended this way.
RUN pip install --upgrade pip RUN pip install --upgrade pip
@ -26,7 +26,7 @@ RUN pip install ansible
# and install it with apt # and install it with apt
RUN wget https://github.com/coder/code-server/releases/download/v4.6.0/code-server_4.6.0_amd64.deb RUN wget https://github.com/coder/code-server/releases/download/v4.6.0/code-server_4.6.0_amd64.deb
RUN apt -y install ./code-server_4.6.0_amd64.deb RUN apt -y install ./code-server_4.6.0_amd64.deb
RUN apt-get clean
# for compatibility with the non-docker version we just link the # for compatibility with the non-docker version we just link the
# /var/lib/rundeck directory to the /home/rundeck directory # /var/lib/rundeck directory to the /home/rundeck directory
RUN ln -s /home/rundeck /var/lib/rundeck RUN ln -s /home/rundeck /var/lib/rundeck