Alpine Linux docker image with Composer with "composer" as entrypoint.
$ docker run --rm -it -v $(pwd):/data jimlei/alpine-composer install
Add to ~/.bashrc
alias composer='docker run --rm -it -v $(pwd):/data jimlei/alpine-composer'
Load the changes
$ source ~/.bashrc
Usage
$ composer -v