Skip to content
Advertisement

Dockerfile | Alpine | Nginx | php7 | MongoDB | Redis

I am looking for a Dockerfile which has Nginx, Php7, MongoDB & Redis enabled on Alpine. Managed to get below but while executing it I see below errors. Please suggest.

Dockerfile:-

JavaScript

Error:-

/bin/sh: docker-php-source: not found /bin/bash: pecl: command not found

Referred:- https://github.com/TrafeX/docker-php-nginx/blob/master/Dockerfile

After commenting from line 2 to line 10, I managed to get Nginx running but In logs I could see below error.

JavaScript

php-fpm.conf-7.0

JavaScript

Advertisement

Answer

In alpine linux pecl is provided by php7-pear package; add it to your apk add command

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement