I've created a dockerfile to containerize my Laravel app for local development environment.
So far I've achieved most of what I need, however, every command ran into the container (like composer install
and such) will alter my codebase files with the containerized root
's UID and generate permissions conflicts in my host machine.
So far, this is my dockerfile
https://github.com/timegridio/dockerfiles and my project codebase (in case needed).
On my research, I've tried some hints given on this question and the recommendations of this article, which I believe seem to be pretty close of what I need. However I had no success with those aproaches and got errors (See the question comments where I pasted outputs, but I did not want to mix that approach on this question just yet.).
Thanks for your time!