Build a Docker image via shell command.
Install:
$ npm install docker-build
Require:
var dockerBuild = require('docker-build');
Build targetPath
source as name
image, calling cb
on completion.
Supported options
:
dockerBuild('imageName', {
'file': 'PATH/Dockerfile',
'tag': 'v1.0.0', //(default latest)
'label': [
'node=v7.2.0',
'docker=1.13.rc0'
],
'no-cache': '',
'rm': true
})
© 2016 Rhio Kim [ @rhiokim / [email protected] ]
Released under the ISC license.