phundament / app

Dockerized Yii2 web application base
http://phundament.com
Other
310 stars 129 forks source link

dockerfile composer.install #150

Closed Quexer69 closed 9 years ago

Quexer69 commented 9 years ago

https://github.com/phundament/app/blob/master/Dockerfile#L5

RUN /usr/local/bin/composer install --prefer-dist --dev --optimize-autoloader

why do we use the option --dev. Apart from the fact that --dev is implied, shouldn't we use --no -dev ?

schmunk42 commented 9 years ago

Using --dev is just to make it more clear what happens.

Since it wasn't possible to have two different Dockerfiles on the same level before Docker 1.5.0 we were not able to distinguish in a nice way between development and production - this should be fixed now.

Commit upcoming...