Dockerfile aktualisiert
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bernd Reuther 2023-10-13 13:19:16 +02:00
parent 02894b1cbd
commit 45ff5acf5d

View File

@ -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 -