added php-mongodb extension

This commit is contained in:
Amin Mkh 2016-06-11 14:38:26 +03:00 committed by GitHub
parent 124a3553e6
commit c4100b5052

View File

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