Dockerfile aktualisiert
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
02894b1cbd
commit
45ff5acf5d
11
Dockerfile
11
Dockerfile
@ -17,10 +17,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
libzip-dev \
|
libzip-dev \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
libicu-dev \
|
libicu-dev \
|
||||||
|
libldap2-dev \
|
||||||
g++ \
|
g++ \
|
||||||
git \
|
git \
|
||||||
cron \
|
cron \
|
||||||
vim \
|
vim \
|
||||||
|
&& docker-php-ext-install ldap \
|
||||||
&& docker-php-ext-install opcache \
|
&& docker-php-ext-install opcache \
|
||||||
&& docker-php-ext-configure intl \
|
&& docker-php-ext-configure intl \
|
||||||
&& docker-php-ext-install intl \
|
&& docker-php-ext-install intl \
|
||||||
@ -41,6 +43,7 @@ RUN { \
|
|||||||
echo 'upload_max_filesize=128M'; \
|
echo 'upload_max_filesize=128M'; \
|
||||||
echo 'post_max_size=128M'; \
|
echo 'post_max_size=128M'; \
|
||||||
echo 'expose_php=off'; \
|
echo 'expose_php=off'; \
|
||||||
|
echo 'extension=ldap'; \
|
||||||
} > /usr/local/etc/php/conf.d/php-recommended.ini
|
} > /usr/local/etc/php/conf.d/php-recommended.ini
|
||||||
|
|
||||||
RUN pecl install apcu \
|
RUN pecl install apcu \
|
||||||
@ -56,10 +59,10 @@ ARG GRAV_VERSION=latest
|
|||||||
|
|
||||||
# Install grav
|
# Install grav
|
||||||
WORKDIR /var/www
|
WORKDIR /var/www
|
||||||
RUN curl -o grav-admin.zip -SL https://getgrav.org/download/core/grav-admin/${GRAV_VERSION} && \
|
#RUN curl -o grav-admin.zip -SL https://getgrav.org/download/core/grav-admin/${GRAV_VERSION} && \
|
||||||
unzip grav-admin.zip && \
|
# unzip grav-admin.zip && \
|
||||||
mv -T /var/www/grav-admin /var/www/html && \
|
# mv -T /var/www/grav-admin /var/www/html && \
|
||||||
rm grav-admin.zip
|
# rm grav-admin.zip
|
||||||
|
|
||||||
# Create cron job for Grav maintenance scripts
|
# 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 -
|
RUN (crontab -l; echo "* * * * * cd /var/www/html;/usr/local/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab -
|
||||||
|
Loading…
x
Reference in New Issue
Block a user