dl/Dockerfile

25 lines
808 B
Docker
Raw Normal View History

2017-11-06 19:44:59 +01:00
ARG VERSION="latest"
FROM "registry.cabillot.eu/www/phpapache:${VERSION}"
2018-05-06 16:28:34 +00:00
LABEL maintainer="Julien Cabillot <dockerimages@cabillot.eu>"
2017-10-31 13:22:54 +00:00
# Nécessaire pour le git clone plus loin
WORKDIR "/var/www"
2018-05-14 13:57:10 -04:00
RUN apt-get -qq update && \
apt-get -qq --yes install libpng12-dev git && \
2017-10-31 13:22:54 +00:00
docker-php-ext-install gd && \
2017-11-06 19:32:14 +01:00
rmdir "/var/www/html" && \
2017-11-06 19:44:59 +01:00
git clone "https://github.com/blueimp/jQuery-File-Upload.git" "/var/www/html" && \
2018-05-14 13:57:10 -04:00
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/"* \
2017-11-07 09:33:09 +01:00
"/var/log/"{apt/*,dpkg.log} \
2018-05-14 13:57:10 -04:00
"/var/www/html" \
"/tmp/"*