From 45ff5acf5d2c620258fab681463e9d4bc236bcc0 Mon Sep 17 00:00:00 2001 From: Bernd Reuther Date: Fri, 13 Oct 2023 13:19:16 +0200 Subject: [PATCH] Dockerfile aktualisiert --- Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index fe33273..b2970f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,10 +17,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ libzip-dev \ zlib1g-dev \ libicu-dev \ + libldap2-dev \ g++ \ git \ cron \ vim \ + && docker-php-ext-install ldap \ && docker-php-ext-install opcache \ && docker-php-ext-configure intl \ && docker-php-ext-install intl \ @@ -41,6 +43,7 @@ RUN { \ echo 'upload_max_filesize=128M'; \ echo 'post_max_size=128M'; \ echo 'expose_php=off'; \ + echo 'extension=ldap'; \ } > /usr/local/etc/php/conf.d/php-recommended.ini RUN pecl install apcu \ @@ -56,10 +59,10 @@ ARG GRAV_VERSION=latest # Install grav WORKDIR /var/www -RUN curl -o grav-admin.zip -SL https://getgrav.org/download/core/grav-admin/${GRAV_VERSION} && \ - unzip grav-admin.zip && \ - mv -T /var/www/grav-admin /var/www/html && \ - rm grav-admin.zip +#RUN curl -o grav-admin.zip -SL https://getgrav.org/download/core/grav-admin/${GRAV_VERSION} && \ +# unzip grav-admin.zip && \ +# mv -T /var/www/grav-admin /var/www/html && \ +# rm grav-admin.zip # Create cron job for Grav maintenance scripts RUN (crontab -l; echo "* * * * * cd /var/www/html;/usr/local/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab -