Function: buildImage()
buildImage(
context,eventCollect,options?):Promise<unknown>
Build a container image
Parameters
• context: string
the build context directory
• eventCollect
a function called when new build logs are emitted or new events happen during the build operation. The value of eventName can be either stream (and data contains the logs), or finish indicating the end of the build operation, or error in case of build error (and data contains the error message)
• options?: BuildImageOptions
parameters for the build operation
Returns
Promise<unknown>