A small Docker image for composer, a dependency management tool for PHP.
50K+
A small Docker image for composer, a dependency management tool for PHP.
This repository generates an image for each composer version, php version and combination thereof
The available composer versions are:
1.5.1, latest1.5.01.4.31.4.21.4.11.4.01.3.31.3.21.3.11.3.0The available php versions are:
php-7.1, latest (php-7.1/Dockerfile)php-7.0 (php-7.0/Dockerfile)php-5.6 (php-5.6/Dockerfile)Combination images are in the format: {composer_ver}-php{php_ver}
1.4.1-php7.11.4.0-php5.6~$ docker run --rm -it \
-v $(pwd):/usr/src/app \
-v ~/.composer:/home/composer/.composer \
-v ~/.ssh/id_rsa:/home/composer/.ssh/id_rsa:ro \
graze/composer
To be able to simulate a platform environment to install you can use the composer configuration option platform.
{"config": {"platform": {
"php": "5.6",
"ext-something": "4.0.0"
}}}
You can use this, or the :php-XX tags to specify that target platform that you want the packages to be installed on.
The Docker Hub image (graze/composer) is an automated build that's also rebuilt daily to pickup any composer updates.
## Development
You can build an individual image with:
~$ PHP_VER=7.1 COMPOSER_VER=1.4.1 make build
or build and test all images with:
~$ make all-build all-test
Content type
Image
Digest
Size
34.2 MB
Last updated
about 7 years ago
docker pull graze/composer