How to start PHP7.0-FPM in Dockerfile? How to start PHP7.0-FPM in Dockerfile? docker docker

How to start PHP7.0-FPM in Dockerfile?


I was on the same issue with you and I had done dozens of combinations then I found the one that works!

Since CMD overridden each other, we have to combine the commands into the same line with &&.

Here is what I have done.

CMD service php7.0-fpm start && nginx -g "daemon off;"