Docker Container for Composer with PHP PostgreSQL driver
681
For PHP7 use the php7 tag.
docker run -v $(pwd):/app \
webridge/composer \
install
docker run --name db_name -d postgresql
docker run \
-v $(pwd):/app \
--link db_name:db \
webridge/composer \
install
docker run \
-v $(pwd):/app \
-v /local/path/to/.composer:/root/.composer \
-e COMPOSER_HOME=/root/.composer \
webridge/composer \
install
You may also add composer parameters after install such as --prefer-dist.
If you are building a Symfony 3.* project, you may wanna add an extra environment variable:
-e SENSIOLABS_ENABLE_NEW_DIRECTORY_STRUCTURE=true \
Content type
Image
Digest
Size
198.6 MB
Last updated
about 10 years ago
docker pull webridge/composer