class_docstr: Build triton image
class_docstr_tok: ["Build","triton","image"]
code: def build(self) -> bool:
      with TemporaryDirectory(dir="./") as workspace:
          self.prepare_dag(Path(workspace))
          self.prepare_config(Path(workspace))
          file_path = self.docker_file()
          if file_path is None:
              return False
          shutil.copy(file_path, Path(workspace) / "Dockerfile")
          self.build_image(workspace)
          return True
  
file_path: towhee/towhee/serve/triton/docker_image_builder.py
imports: import json
  import shutil
  import subprocess
  from pathlib import Path
  from tempfile import TemporaryDirectory
  from towhee.serve.triton.dockerfiles import get_dockerfile
label_desc: Use image node_id 6 for calling the DockerImageBuilder obj's underlying member method code with example usage: obj.build() and returns: True, False