Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save abhinavkorpal/efbb1157d25e195eef5f346cf7b7ccf4 to your computer and use it in GitHub Desktop.
Save abhinavkorpal/efbb1157d25e195eef5f346cf7b7ccf4 to your computer and use it in GitHub Desktop.
Dockerfiles Comands
docker build -t <your name>/node . # -t is short for --tag, your name ~ is ~ Tag name, .(dot) is Build context
docker build -f Dockerfile -t abhinavkorpal/node .
docker run -d -p 8080:3000 abhinavkorpal/node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment