Skip to content

A script to run node scripts or npm commands in a docker container for portability

License

Notifications You must be signed in to change notification settings

dwilson6/dockerNodew

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dockerNodew

A script to run node scripts or npm commands in a docker container for portability. Put this script in your project and then use it in place of the npm and node binaries if you don't want to manage your own node environment (or on a build server).

Usage Examples:

./dockerNodew npm install
./dockerNodew path/to/file.js

The user running the command and group are dynamically added in the container so file permissions are correct from an npm install.

The node version to use will be picked up from a .nvmrc file or the NODE_VERSION environment variable or fallback to a default if not specified. By default it will use the slim version of the offical node docker image. If you want to use the full image set the environment variable USE_FULL_IMAGE=true before running ./dockerNodew

About

A script to run node scripts or npm commands in a docker container for portability

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages