Merge pull request #94 from AminMkh/AminMkh-mongodb-extension

added php-mongodb extension
This commit is contained in:
Mahmoud Zalt 2016-06-11 15:47:16 +03:00 committed by GitHub
commit ceba1af3ae

View File

@ -34,6 +34,12 @@ RUN apt-get update && apt-get install -y --force-yes \
php7.0-sqlite3 \
php7.0-zip \
php7.0-memcached \
php-dev \
libcurl4-openssl-dev \
libedit-dev \
libssl-dev \
libxml2-dev \
xz-utils \
sqlite3 \
libsqlite3-dev \
git \
@ -63,6 +69,10 @@ RUN curl -s http://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/ \
&& echo "alias composer='/usr/local/bin/composer.phar'" >> ~/.bashrc
# Install mongodb extension
RUN pecl install mongodb
RUN echo "extension=mongodb.so" >> /etc/php/7.0/cli/php.ini
# Source the bash
RUN . ~/.bashrc