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

Method build

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

Source from the content-addressed store, hash-verified

209 f'torch{self.args.torch_version}-base')
210
211 def build(self):
212 return self.run_cmd('docker', 'build',
213 '--build-arg', 'DOCKER_BUILDKIT=0', '-t',
214 self.image(), '-f', 'Dockerfile', '.')
215
216 def push(self):
217 ret = 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