Skip to content

Instantly share code, notes, and snippets.

@royling
Last active February 21, 2016 06:37
Show Gist options
  • Save royling/7c6e174132d139e03fbc to your computer and use it in GitHub Desktop.
Save royling/7c6e174132d139e03fbc to your computer and use it in GitHub Desktop.
shell commands for Node development in Docker containers
#!/bin/bash
# run `npm install` (or any command) in a container of `node:latest` image
# - mount current dir to the working directory /ws in container
# - one-off container
docker run -it --rm -v $PWD:/ws -w /ws node npm install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment