With Docker, should I use Composer in the container or the host?

1

I have some doubts about the development environment. I have a project in Laravel and I'm using Docker. When will you use Laravel's Composer or Artisan, what is the right place to do it? On my host machine or in the Docker container?

    
asked by anonymous 05.10.2017 / 21:47

1 answer

2

If you need to reuse the cached packages for other projects ( when you install a package, the composer caches not to download again if you create or install the package in another project >) then I recommend that you use the host composer, but if that does not make much difference you can use the container composer.

Please note that for this you must be using a image that brings the installed composer or you can even create your own image containing any stack you want.

If you want to use ready-made images (with php, composer .. etc) I recommend ambientum .

    
11.10.2017 / 01:57