reducing debian image size (hopefully)

This commit is contained in:
Ric Harvey
2015-07-13 11:18:49 +01:00
parent a94ed8b750
commit 29366ef97a

View File

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