Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rhiokim/docker-build
- Owner: rhiokim
- Created: 2016-12-02T18:11:26.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-03T04:11:26.000Z (about 8 years ago)
- Last Synced: 2024-11-08T19:12:34.356Z (about 2 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.