Merge branch 'fix/4-issue-with-apcu-install-job-failed-112853842' into 'master'
Resolve "Issue with apcu install - Job Failed #112853842" Closes #4 See merge request botux-fr/docker/grav!4
This commit is contained in:
commit
b6bd348392
10
Dockerfile
10
Dockerfile
|
|
@ -2,6 +2,13 @@ FROM php:7.2-apache
|
||||||
LABEL maintainer="Andy Miller <rhuk@getgrav.org> (@rhukster)" \
|
LABEL maintainer="Andy Miller <rhuk@getgrav.org> (@rhukster)" \
|
||||||
maintainer="Romain Fluttaz <romain@fluttaz.fr>"
|
maintainer="Romain Fluttaz <romain@fluttaz.fr>"
|
||||||
|
|
||||||
|
# install dependencies we need
|
||||||
|
RUN set -ex; \
|
||||||
|
\
|
||||||
|
apt-get update; \
|
||||||
|
apt-get install -y \
|
||||||
|
unzip
|
||||||
|
|
||||||
# install the PHP extensions we need
|
# install the PHP extensions we need
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
\
|
\
|
||||||
|
|
@ -19,9 +26,10 @@ RUN set -ex; \
|
||||||
\
|
\
|
||||||
pecl install apcu; \
|
pecl install apcu; \
|
||||||
pecl install yaml; \
|
pecl install yaml; \
|
||||||
|
docker-php-ext-enable apcu yaml; \
|
||||||
docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr; \
|
docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr; \
|
||||||
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/; \
|
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/; \
|
||||||
docker-php-ext-install gd mysqli opcache zip ldap apcu yaml; \
|
docker-php-ext-install gd mysqli opcache zip ldap; \
|
||||||
\
|
\
|
||||||
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
|
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
|
||||||
apt-mark auto '.*' > /dev/null; \
|
apt-mark auto '.*' > /dev/null; \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue