Dockerfile 371 B

12345678910
  1. FROM php:7-fpm
  2. WORKDIR /php
  3. RUN apt-get update \
  4. && apt-get install -y --no-install-recommends openssl libssl-dev libcurl4-openssl-dev \
  5. && pecl install mongodb \
  6. && cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini \
  7. && echo "extension=mongodb.so" >> /usr/local/etc/php/php.ini \
  8. && apt-get clean \
  9. && rm -rf /var/lib/apt/lists