reducing debian image size (hopefully)
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -70,6 +70,16 @@ RUN mkdir -p /etc/nginx/ssl/
|
|||||||
ADD ./nginx-site.conf /etc/nginx/sites-available/default.conf
|
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
|
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 git commands to allow container updating
|
||||||
ADD ./pull /usr/bin/pull
|
ADD ./pull /usr/bin/pull
|
||||||
ADD ./push /usr/bin/push
|
ADD ./push /usr/bin/push
|
||||||
|
|||||||
Reference in New Issue
Block a user