MCPcopy Index your code
hub / github.com/astral-sh/python-build-standalone / build_docker_image

Function build_docker_image

pythonbuild/docker.py:32–37  ·  view source on GitHub ↗
(
    client, image_data: bytes, image_dir: pathlib.Path, name, host_platform
)

Source from the content-addressed store, hash-verified

30
31
32def build_docker_image(
33 client, image_data: bytes, image_dir: pathlib.Path, name, host_platform
34):
35 image_path = image_dir / f"image-{name}.{host_platform}"
36
37 return ensure_docker_image(client, io.BytesIO(image_data), image_path=image_path)
38
39
40def ensure_docker_image(client, fh, image_path=None):

Callers 2

mainFunction · 0.90
get_imageFunction · 0.85

Calls 1

ensure_docker_imageFunction · 0.85

Tested by

no test coverage detected