Skip to content

Instantly share code, notes, and snippets.

@ryanramage
Last active August 29, 2015 14:18
Show Gist options
  • Save ryanramage/f211556fdfc8244554e4 to your computer and use it in GitHub Desktop.
Save ryanramage/f211556fdfc8244554e4 to your computer and use it in GitHub Desktop.
Example package.json using docker build run push
{
"name": "example",
"version": "2.1.4",
"description": "Example docker",
"scripts": {
"start": "node bin/cli",
"docker-build": "rm -rf node_modules && npm i --production && ./node_modules/docker-build-run-push/docker-build",
"docker-run": "./node_modules/docker-build-run-push/docker-run",
"docker-push": "rm -rf node_modules && npm i && make build && npm prune && ./node_modules/docker-build-run-push/docker-push"
},
"dependencies": {
"docker-build-run-push": "^1.2.1"
},
"docker-registry": "docker.yourcloud.com"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment