Skip to content

Instantly share code, notes, and snippets.

@kovagoz
Created September 2, 2016 05:03
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save kovagoz/0d6a24405d974c06f77cd2533b63b3f8 to your computer and use it in GitHub Desktop.
Save kovagoz/0d6a24405d974c06f77cd2533b63b3f8 to your computer and use it in GitHub Desktop.
Alpine Linux with PHP 5.6 FPM and Mongo module
FROM php:5.6-fpm-alpine
RUN apk update && apk add autoconf openssl-dev g++ make && \
pecl install mongo && \
docker-php-ext-enable mongo && \
apk del --purge autoconf openssl-dev g++ make
@babininja
Copy link

@mtrojanowski I am using php5.6-mongodb without docker and it works. but when i try to add it to docker file i can't. if i use php-mongo it gives me this error 'Class 'MongoDB\Driver\Manager' not found'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment