diff --git a/Dockerfile b/Dockerfile index 9abd994..7ebdc1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -70,6 +70,16 @@ RUN mkdir -p /etc/nginx/ssl/ ADD ./nginx-site.conf /etc/nginx/sites-available/default.conf RUN ln -s /etc/nginx/sites-available/default.conf /etc/nginx/sites-enabled/default.conf +# Tidy up files and shrink image size + +RUN apt-get purge $(aptitude search '~i!~M!~prequired!~pimportant!~R~prequired!~R~R~prequired!~R~pimportant!~R~R~pimportant!busybox!grub!initramfs-tools' | awk '{print $2}') +RUN apt-get purge aptitude +RUN apt-get autoremove +RUN apt-get clean + +RUN rm -rf /usr/share/man/?? +RUN rm -rf /usr/share/man/??_* + # Add git commands to allow container updating ADD ./pull /usr/bin/pull ADD ./push /usr/bin/push