A simple Docker image and Dockerfile to run composer through HHVM
docker run -ti --rm=true \
-v `pwd`:/srv \
-v $(LOCAL_DIR):$(HOMEDIR)/.composer \
marmelab/composer-hhvm bash -ci '\
composer install --no-interaction --prefer-dist'
composer:
image: zolweb/docker-composer
working_dir: /src
volumes:
- /var/tmp/composer:/root/.composer
- ".:/src"
net: "host"
For non root user inside container
composer:
image: zolweb/docker-composer:no-root
...