Socket
Book a DemoInstallSign in
Socket

@anzerr/dockerfile.util

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anzerr/dockerfile.util

an util for scripting dockerfiles

latest
Source
npmnpm
Version
1.0.18
Version published
Weekly downloads
3
50%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

docker

FAQs

Package last updated on 21 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts