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
| # Docker aliases. | |
| # run node server | |
| alias node='docker run -it --rm --name node-app --user="node" -v "$PWD":/usr/src/app -w /usr/src/app node:16 node' | |
| # run a npm command | |
| alias npm='docker run --rm --user="node" -v "$PWD":/usr/src/app -w /usr/src/app node:16 npm' | |
| alias npmit='docker run -it --rm --user="node" -v "$PWD":/usr/src/app -w /usr/src/app node:16 npm' | |
| # run a npx command | |
| alias npx='docker run --rm --user="node" -v "$PWD":/usr/src/app -w /usr/src/app node:16 npx' |