Break out docker command to generic build command
Try to pass around json for docker