Skip to content

Instantly share code, notes, and snippets.

@mdimai666
Created January 7, 2020 08:15
Show Gist options
  • Save mdimai666/eebe581eb44a716ae2b57e8ae0dc5e15 to your computer and use it in GitHub Desktop.
Save mdimai666/eebe581eb44a716ae2b57e8ae0dc5e15 to your computer and use it in GitHub Desktop.
//docker-build.ps1
docker build --rm -f "Dockerfile" -t mdimai666/doc1:latest "."
//docker-run.ps1
docker rm node1 -f
docker run --rm -d -p 3000:3000/tcp --name node1 mdimai666/doc1:latest
//scripts
"scripts": {
"dockerbuild": "pwsh docker-build.ps1",
"rundocker" : "pwsh docker-run.ps1"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment