generators/init-product/templates/plain/build.js
function docker(cwd, cmd) {
  console.log(cwd, chalk.blue('running docker', cmd));
  return spawn('docker', (cmd || 'build .').split(' '), {cwd, env});
}
function docker(cwd, cmd) {
  console.log(cwd, chalk.blue('running docker', cmd));
  return spawn('docker', (cmd || 'build .').split(' '), {cwd, env});
}
function docker ( cwd , cmd ) { console . log ( cwd , chalk . blue ( 'running docker' , cmd ) ) ; return spawn ( 'docker' , ( cmd || 'build .' ) . split ( ' ' ) , { cwd , env } ) ; }
runs docker command
@param cwd
@param cmd
@return {*}
runs docker command