passage à www/phpapache

This commit is contained in:
root 2017-11-06 19:32:14 +01:00
parent 4af711e8df
commit d2b02fac37

View File

@ -1,35 +1,11 @@
FROM "php:7.1-apache" ARG VERSION=latest
FROM "registry.cabillot.eu/www/phpapache":${VERSION}
MAINTAINER "Julien Cabillot <dockerimages@cabillot.eu>"
WORKDIR "/var/www" RUN apt-get update && \
RUN sed -i'' 's/^Listen 80$/Listen 8080/' "/etc/apache2/ports.conf" && \
sed -i'' 's/^<VirtualHost \*:80>$/<VirtualHost *:8080>/' '/etc/apache2/sites-enabled/000-default.conf' && \
apt-get update && \
apt-get -y install libpng12-dev git && \ apt-get -y install libpng12-dev git && \
docker-php-ext-install gd && \ docker-php-ext-install gd && \
apt-get clean all && \ apt-get clean all && \
a2enmod headers && \ a2enmod headers && \
rm -rf "/usr/share/doc/*" \ rmdir "/var/www/html" && \
"/var/cache/*" \ git clone "https://github.com/blueimp/jQuery-File-Upload.git" "/var/www/html"
"/var/lib/apt/lists/*" \
"/usr/src/*" \
"/var/cache/*" \
"/var/log/"{apt/*,dpkg.log} \
"/var/www/html" \
"/tmp/*" && \
git clone "https://github.com/blueimp/jQuery-File-Upload.git" "html"
RUN chown -R "www-data":"www-data" "/var/www/html"
# Add Tini
ENV "TINI_VERSION" "v0.16.1"
ADD "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini" "/tini"
RUN chmod +x "/tini"
ENTRYPOINT ["/tini", "--"]
USER "www-data"
CMD [ "docker-php-entrypoint", "apache2-foreground" ]
HEALTHCHECK --interval="10s" \
CMD curl --fail "http://localhost:8080" || exit 1