[DOCKER][PHP][EXTENSION] Add PHP ds extension to docker PHP image

This commit is contained in:
Hugo Sales 2020-07-10 14:03:00 +00:00 committed by Hugo Sales
parent 52aad30030
commit 279b7e775b
Signed by untrusted user: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
1 changed files with 9 additions and 2 deletions

View File

@ -1,15 +1,22 @@
FROM php:fpm-alpine
RUN apk update && apk add gettext-dev icu-dev zlib-dev libpng-dev gmp-dev \
RUN apk update && apk add git gettext-dev icu-dev zlib-dev libpng-dev gmp-dev \
mariadb-dev mariadb-client postgresql-dev postgresql-client composer > /dev/null
ARG exts=" bcmath exif gd gettext gmp intl mysqli opcache pdo pdo_mysql mysqli pdo_pgsql pgsql"
RUN apk add --virtual .phpize-deps $PHPIZE_DEPS \
&& cd /tmp \
&& git clone https://github.com/php-ds/ext-ds \
&& cd ext-ds \
&& phpize \
&& ./configure \
&& make \
&& make install \
&& rm -rf /usr/share/php7 \
&& rm -rf /tmp/* \
&& apk del .phpize-deps > /dev/null
RUN docker-php-ext-install ${exts}
RUN docker-php-ext-install ${exts} && docker-php-ext-enable ds
WORKDIR /var/www/social