|
|
|
@ -13,11 +13,14 @@ RUN apt-get update >/dev/null && \ |
|
|
|
rm -rf /var/lib/apt/lists/* && \ |
|
|
|
groupadd -g 1007 nginx && \ |
|
|
|
usermod -a -G nginx www-data && \ |
|
|
|
rmdir ../html && \ |
|
|
|
rm -rf /var/www/html && \ |
|
|
|
ln -s /var/www/mydl.cabillot.eu/root /var/www/html && \ |
|
|
|
curl "https://getcomposer.org/composer.phar" -o "composer.phar" && \ |
|
|
|
php composer.phar install && \ |
|
|
|
a2enmod rewrite |
|
|
|
|
|
|
|
HEALTHCHECK --interval=10s \ |
|
|
|
CMD curl --fail "http://localhost" || exit 1 |
|
|
|
|
|
|
|
# TODO : ajouter les HEADER HTTPS sécurisés dans le .htaccess |
|
|
|
WORKDIR /var/www/mydl.cabillot.eu |