andrelandgraf / laravel-docker

A walking skeleton for a web app using laravel 5.6 and docker.
2 stars 0 forks source link

PHP composer inside docker image for composer dump-autoload #10

Closed andrelandgraf closed 6 years ago

andrelandgraf commented 6 years ago

https://stackoverflow.com/questions/51443557/how-to-install-php-composer-inside-a-docker-container

andrelandgraf commented 6 years ago

http://laradock.io/

andrelandgraf commented 6 years ago

RUN curl --silent --show-error https://getcomposer.org/installer | php -- \ --install-dir=/usr/local/bin --filename=composer

andrelandgraf commented 6 years ago

npm and PHP Composer should only be accessible in the dev container, not in production.