A minimal Dockerfile based on alpine image.
Multiple version of composer with php 5.6, 7.2 and 7.3
PHP56:
PHP72:
PHP73:
Composer 1.5.6 with php 5.6 example:
$ docker run --rm -ti sdaoudi/composer:1.5.6-php56 php -v
Composer 1.6.5 with php 7.2 example:
$ docker run --rm -ti sdaoudi/composer:1.6.5-php72 composer -v
Composer 1.10.15 with php 7.3 example:
$ docker run --rm -ti sdaoudi/composer:1.10.15-php73 composer -v
You can use /var/www as a default working directory:
$ docker run --rm -ti sdaoudi/composer:1.8.4-php72 pwd
| apcu | bcmath | bz2 | cli | ctype | curl | dom | exif |
| gd | gmp | gettext | iconv | intl | json | ldap | mcrypt |
| memcache | memcached | mysql | opcache | redis | openssl | pcntl | pdo |
| mongo | pear | phar | posix | xcache | xml | xsl | zip |
You can build a composer image with this command:
$ make build PHP_VERSION=56 COMPOSER_VERSION=1.6.5
Content type
Image
Digest
Size
137.7 MB
Last updated
about 6 years ago
docker pull sdaoudi/composer:1.10.15-php80