Monthly Archives: June 2019

alpine the lightweight distro for docker images

alpine the lightweight distro for docker images

 

docker node.js images not to be confused with the docker node command

docker node.js images not to be confused with the docker node command

how to run a single Node.js script

For many simple, single file projects, you may find it inconvenient to write a complete Dockerfile. In such cases, you can run a Node.js script by using the Node.js Docker image directly:

$ docker run -it --rm --name my-running-script -v 
"$PWD":/usr/src/app -w /usr/src/app node:8 
node your-daemon-or-script.js

docker node command