I'm trying to create a docker image that runs Nginx and allows PHP pages to be loaded on a VM using php7.4-fpm. I'm able to start up my Nginx and it works with HTML pages but I can't find a way to start php7.4-fpm at the same time as Nginx. I want to be able to load PHP pages on this Nginx server. Is it possible to start several things at once in the ENTRYPOINT command? I am having a base layer of ubuntu:18.04 in my FROM and then installing both nginx and php7.4-fpm. Thanks.
ENTRYPOINT ["nginx", "-g", "daemon off;"] #Can I start php-fpm here as well??