@anzerr/dockerfile.util
TypeScript icon, indicating that this package has built-in type declarations

1.0.18 • Public • Published

Intro

GitHub Actions status | publish

util to script dockerfile creation

Install

npm install --save git+https://github.com/anzerr/dockerfile.util.git
npm install --save @anzerr/dockerfile.util

Example

const util = require('dockerfile.util');

class Busybox extends util.Build {

	constructor() {
		super();
		this.author = 'dave';
	}

	build() {
		return super.build().then(() => {
			this.dockerfile[0]
				.run('echo "add a run command"')
				.cmd('["sh"]');
		});
	}

}

let a = new Busybox();

a.toFile().then(() => {
	return a.run();
}).then(() => {
	console.log('done');
});

Package Sidebar

Install

npm i @anzerr/dockerfile.util

Weekly Downloads

1

Version

1.0.18

License

MIT

Unpacked Size

6.96 kB

Total Files

8

Last publish

Collaborators

  • anzerr