Based on official nodejs 6.5. Run with specified system user
1.1K
pull latest image version
docker pull orx0r/nodejs-gosu
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 \
orx0r/nodejs-gosu
user@cca73a9235e0:/app$
check current user id:
id
uid=1000(user) gid=1000(user) groups=1000(user)
now you can install project dependencies with npm or run some scripts:
npm install
npm start
Content type
Image
Digest
Size
248.9 MB
Last updated
over 9 years ago
docker pull orx0r/nodejs-gosu