Sign inSign up

ferri/php-composer

By ferri

•Updated almost 9 years ago

Docker image based on PHP CLI Alpine and adds Composer, Git, Unzip, Zip.

Image
1

310

ferri/php-composer repository overview

⁠PHP-Composer

Docker image based on php:7.1-cli-alpineand adds Composer, Git, Unzip, Zip.

⁠Usage

Go to directory of project and run this command

docker run --rm \
    -v $(pwd):/tmp \
    -w /tmp \
    -u $(id -u):$(id -g) \
    ferri/php-composer \
    composer install

You can replace $(pwd) with your actual path directory if you are not in the current working directory.

If you don't mind running composer with root user, then you can remove -u $(id -u):$(id -g).

Tag summary

Content type

Image

Digest

Size

34.2 MB

Last updated

almost 9 years ago

docker pull ferri/php-composer