1.0.18 • Published 2 years ago

@anzerr/dockerfile.util v1.0.18

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

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');
});
1.0.18

2 years ago

1.0.17

3 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.8

5 years ago

1.0.5

5 years ago

1.0.6

5 years ago

1.0.7

5 years ago