docker-build
Docker build as a duplex stream. Pipe in a tar stream and pipe out the build output
npm install docker-build

Usage
var build = require('docker-build')
var fs = require('fs')
fs.createReadStream('a-tar-file-with-a-dockerfile.tar')
.pipe(build('my-new-image'))
.pipe(process.stdout)
The above example will build a docker image from the input tarball
and pipe the build output to stdout using docker running locally on port 2375.
API
var stream = build(tag, [options])
options can contain the following:
{
host: '/var/run/docker.sock',
cache: true,
quiet: false,
registry: conf,
remove: true,
forceremove: false
}
CLI
There is a command line too available as well
$ npm install -g docker-build
$ docker-build --help
Running docker-build some-image-tag will build current working directory
License
MIT