Skip to content

Instantly share code, notes, and snippets.

@ayoayco
Last active May 26, 2018 18:05
Show Gist options
  • Save ayoayco/e1817aa6180f7325b52f17a132f9a388 to your computer and use it in GitHub Desktop.
Save ayoayco/e1817aa6180f7325b52f17a132f9a388 to your computer and use it in GitHub Desktop.
Run a Docker image of Node.js and provide it the current working directory as data volume, then run npm start within the running Docker
docker run -p 8080:3000 -v %cd%:/var/www -w "/var/www" node npm start
@ayoayco
Copy link
Author

ayoayco commented May 26, 2018

Important Note here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment