Public Repository

Last pushed: 10 months ago
Short Description
Based on official php-cli v7.0 and enchanted with composer. Composer run with specified system user
Full Description

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
Docker Pull Command
Owner
orx0r