lib/build.js
/**
 * Build docker image for a specific node version
 */
Build docker image for a specific node version
Build docker image for a specific node version
function build (context) {
	var dockerfile = format('FROM node:%s-onbuild', context.version);
	var tmpPath = join(context.path, '.' + context.version + '.dockerfile');
	return fs.writeFile(tmpPath, dockerfile)
		.then(function () {
			var image = format('test-%s-%s', context.name, context.version);
			return run('docker', ['build', '-t', image, '-f', tmpPath, '.']).return(context);
		});
}
function build ( context ) { var dockerfile = format ( 'FROM node:%s-onbuild' , context . version ) ; var tmpPath = join ( context . path , '.' + context . version + '.dockerfile' ) ; return fs . writeFile ( tmpPath , dockerfile ) . then ( function ( ) { var image = format ( 'test-%s-%s' , context . name , context . version ) ; return run ( 'docker' , [ 'build' , '-t' , image , '-f' , tmpPath , '.' ] ) . return ( context ) ; } ) ; }
Build docker image for a specific node version
Build docker image for a specific node version