Based on official php-cli v7.0 and enchanted with composer. Composer run with specified system user
397
pull latest image version
docker pull orx0r/php-cli7.0-gosu-composer
run it!
docker run -it --rm -e LOCAL_USER_ID=`id -u $USER` -e LOCAL_USER_NAME=$USER \
-v `pwd`:/app \
-v /home/$USER/.ssh:/home/$USER/.ssh \
#-v ~/.composer:/composer \
orx0r/php-cli7.0-gosu-composer
user@cca73a9235e0:/app$
check current user id:
id
uid=1000(user) gid=1000(user) groups=1000(user)
now you can install project dependencies with composer or run some scripts:
composer install
php run.php
Content type
Image
Digest
Size
188.2 MB
Last updated
over 9 years ago
docker pull orx0r/php-cli7.0-gosu-composer