Moveed cleanup to last

This commit is contained in:
lonix 2015-06-17 14:44:21 +02:00
parent 33f78fc58f
commit 605d51a9bb

View File

@ -9,7 +9,6 @@ ENV TERM screen
#Applying stuff
RUN apt-get update
RUN apt-get install -y apache2 smokeping
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#Link config
RUN ln -s /etc/smokeping/apache2.conf /etc/apache2/conf-available/apache2.conf
@ -18,6 +17,8 @@ RUN ln -s /etc/smokeping/apache2.conf /etc/apache2/conf-available/apache2.conf
RUN a2enconf apache2
RUN a2enmod cgid
#Last line of normal hassle
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#Adding Custom files
ADD config.d/ /etc/smokeping/config.d/
ADD init/ /etc/my_init.d/