dl/Dockerfile

19 lines
573 B
Docker
Raw Normal View History

FROM "php:apache"
2017-10-31 13:22:54 +00:00
WORKDIR "/var/www"
2017-10-31 13:22:54 +00:00
RUN apt-get update && \
apt-get -y install libpng12-dev git && \
2017-10-31 13:22:54 +00:00
docker-php-ext-install gd && \
apt-get clean all && \
a2enmod headers && \
git clone "https://github.com/blueimp/jQuery-File-Upload.git" && \
rm -rf "/var/www/html" && \
ln -s "jQuery-File-Upload" "html" && \
2017-10-31 13:22:54 +00:00
rm -rf /usr/share/doc/* \
/var/cache/* \
/var/lib/apt/lists/*
RUN chown -R "www-data":"www-data" "/var/www/jQuery-File-Upload/"
2017-10-31 13:22:54 +00:00
HEALTHCHECK --interval=10s \
CMD curl --fail "http://localhost" || exit 1