I’m new working with docker and I have a general question about how I should build the image for my project. I’m currently developing a PHP application with laravel and would like to run this thing with docker / docker-compose.
How shoudl I now build the image? An image based on nginx which clonse the git repo with the code during the creation of the image into the wwwroot folder and the image would run and work by it self or just my code based on a php image and a separate nginx server as a image which servers the code out of my php image?
Thank you for your answer.