-
-
Save royling/7c6e174132d139e03fbc to your computer and use it in GitHub Desktop.
shell commands for Node development in Docker containers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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