Skip to content

Instantly share code, notes, and snippets.

View nickganguly07's full-sized avatar

Abhishek (Nick) Ganguly nickganguly07

View GitHub Profile
@nickganguly07
nickganguly07 / nvmCommands.js
Created September 16, 2021 16:00 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list installed versions of node (via nvm)
nvm ls
// install specific version of node
nvm install 6.9.2
// set default version of node
Commands
------------
1. Build Docker Image
docker build -t test .
2. Run container /w image
docker run -d --publish 8888:5000 test
3. Login to ECR
aws ecr get-login-password --region REGIONHERE!!!! | docker login --username AWS --password-stdin ACCOUNTIDHERE!!!!.dkr.ecr.REGIONHERE!!!.amazonaws.com