fix cleanup

This commit is contained in:
Cabillot Julien 2018-05-14 13:57:10 -04:00
parent f1698ba58b
commit afed0c225d

View File

@ -5,18 +5,20 @@ LABEL maintainer="Julien Cabillot <dockerimages@cabillot.eu>"
# Nécessaire pour le git clone plus loin
WORKDIR "/var/www"
RUN apt-get update && \
apt-get -y install libpng12-dev git && \
RUN apt-get -qq update && \
apt-get -qq --yes install libpng12-dev git && \
docker-php-ext-install gd && \
apt-get clean all && \
rmdir "/var/www/html" && \
git clone "https://github.com/blueimp/jQuery-File-Upload.git" "/var/www/html" && \
apt-get -y autoremove --purge git libpng12-dev && \
apt-get -y clean all && \
rm -rf "/usr/share/doc/*" \
"/var/cache/*" \
"/var/lib/apt/lists/*" \
"/usr/src/*" \
"/var/cache/*" \
apt-get -qq --yes remove --purge libpng12-dev && \
apt-get -qq --yes autoremove --purge && \
apt-get -qq --yes clean all && \
rm -rf "/usr/share/doc/"* \
"/var/cache/"* \
"/var/lib/apt/lists/"* \
"/usr/src/"* \
"/var/cache/"* \
"/var/log/"{apt/*,dpkg.log} \
"/tmp/*"
"/var/www/html" \
"/tmp/"*