MCPcopy Create free account
hub / github.com/modelscope/modelscope / build

Method build

docker/build_image.py:275–278  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

273 f'{self.args.python_tag}-torch{self.args.torch_version}-test')
274
275 def build(self) -> int:
276 return self.run_cmd('docker', 'build',
277 '--build-arg', 'DOCKER_BUILDKIT=0', '-t',
278 self.image(), '-f', 'Dockerfile', '.')
279
280 def push(self):
281 return self.run_cmd('docker', 'push', self.image())

Callers

nothing calls this directly

Calls 2

imageMethod · 0.95
run_cmdMethod · 0.80

Tested by

no test coverage detected