03/01
2018
Composer Docker is a simple plugin for building your project image., (*1)
composer require amirbilu/composer-docker
, (*2)
Example composer.json
(optional):, (*3)
{ "extra": { "composer-docker":{ "tags":[ "tag1", "tag2" ], "path": "path/to/dockerfile" } } }
Run composer docker
(add -vvv for debugging information), (*4)
A good practice would be to add the above to post-install-cmd hook:, (*5)
```json { "scripts":{ "post-install-cmd":[ "composer docker" ] } }, (*6)