LEMH image with Custom Nginx build [ How to do ]

I’m trying to create a docker image that automates the deployment of a LEMH environment for Wordpress single site. I currently use this setting -> https://github.com/VisiStruct/LEMH-Server, normal without docker. My question is about NGINX with source build. Could anyone give some light?