Skip to content

Commit

Permalink
fix unavailable php 8 modules on alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
htuscher committed Aug 14, 2020
1 parent 1de480a commit fdd9378
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
17 changes: 9 additions & 8 deletions docker/php-official/8.0-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -207,18 +207,19 @@ RUN set -x \
&& pickle install memcached \
&& pickle install apcu \
&& pickle install vips \
&& pickle install redis \
&& pickle install mongodb \
&& pickle install imagick \
&& pickle install amqp \
&& pickle install yaml \
# && pickle install redis \
# && pickle install mongodb \
# && pickle install imagick \
# && pickle install amqp \
&& docker-php-ext-enable \
apcu \
redis \
imagick \
mongodb \
amqp \
vips \
yaml \
# redis \
# imagick \
# mongodb \
# amqp \
# Uninstall dev and header packages
&& apk del -f --purge \
autoconf \
Expand Down
19 changes: 14 additions & 5 deletions template/Dockerfile/images/php.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,19 @@
&& pickle install memcached \
&& pickle install apcu \
&& pickle install vips \
&& pickle install redis \
&& pickle install mongodb \
&& pickle install imagick \
&& pickle install amqp \
&& pickle install yaml \
# && pickle install redis \
# && pickle install mongodb \
# && pickle install imagick \
# && pickle install amqp \
&& docker-php-ext-enable \
apcu \
vips \
yaml \
# redis \
# imagick \
# mongodb \
# amqp \
{%- else %}
# Install vips (only works with PHP >= 7.0)
&& pecl install apcu \
Expand All @@ -313,7 +322,6 @@
&& pecl install imagick \
&& pecl install amqp \
&& pecl install yaml \
{%- endif %}
&& docker-php-ext-enable \
apcu \
redis \
Expand All @@ -322,6 +330,7 @@
amqp \
vips \
yaml \
{%- endif %}
# Uninstall dev and header packages
&& apk del -f --purge \
autoconf \
Expand Down

0 comments on commit fdd9378

Please sign in to comment.