Deploying PHP with nginx + php-fpm in a single container

I recently had to do some maintenance work on an old application hosted on the CakePHP server. The CakePHP project has 20 or so sites and applications deployed in dokku . Dokku allows us to build a platform-as-a-service for our sites that operates on a single server. Dokku encourages using heroku-style buildpacks to deploy applications.