FROM php:7.2-fpm
RUN apt-get update
&& apt-get install -y libcurl4-openssl-dev pkg-config libssl-dev
&& /usr/local/bin/pecl install mongodb
&& echo 'extension=mongodb.so' >> /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
&& /usr/local/bin/pecl install redis
&& echo 'extension=redis.so' >> /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini