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

Method build

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

Source from the content-addressed store, hash-verified

246 f'torch{self.args.torch_version}-base')
247
248 def build(self):
249 return self.run_cmd('docker', 'build',
250 '--build-arg', 'DOCKER_BUILDKIT=0', '-t',
251 self.image(), '-f', 'Dockerfile', '.')
252
253 def push(self):
254 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