Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rhiokim/docker-build

Docker build image
https://github.com/rhiokim/docker-build

Last synced: 2 days ago
JSON representation

Docker build image

Awesome Lists containing this project

README

        

# docker-build

Build a Docker image via shell command.

## Installation

Install:

$ npm install docker-build

Require:

var dockerBuild = require('docker-build');

## API

#### `build(name, targetPath, [options], cb)`

Build `targetPath` source as `name` image, calling `cb` on completion.

Supported `options`:
* https://docs.docker.com/engine/reference/commandline/build/

```
dockerBuild('imageName', {
'file': 'PATH/Dockerfile',
'tag': 'v1.0.0', //(default latest)
'label': [
'node=v7.2.0',
'docker=1.13.rc0'
],
'no-cache': '',
'rm': true
})
```

## Copyright & License

© 2016 Rhio Kim [ [@rhiokim](http://twitter.com/rhiokim) / [[email protected]](mailto:[email protected]) ]

Released under the ISC license.