def build_docker_image(
        dc_pipeline: 'towhee.RuntimePipeline',
        image_name: str,
        cuda_version: str,
        format_priority: list,
        parallelism: int = 8,
        inference_server: str = 'triton',
    ):
    """
    Wrapper for lazy import build_docker_image.

    Args:
        dc_pipeline ('towhee.RuntimPipeline'):
            The pipeline to build as a model in the docker image.
        image_name (`str`):
            The name of the docker image.
        cuda_version (`str`):
            Cuda version.
        format_priority (`list`):
            The priority order of the model format.
        parallelism (`int`):
            The parallel number.
        inference_server (`str`):
            The inference server.

    Examples:
        >>> import towhee
        >>> from towhee import pipe, ops

        >>> p = (
        ...     pipe.input('url')
        ...         .map('url', 'image', ops.image_decode.cv2_rgb())
        ...         .map('image', 'vec', ops.image_embedding.timm(model_name='resnet50'))
        ...         .output('vec')
        ... )

        >>> towhee.build_docker_image(
        ...     dc_pipeline=p,
        ...     image_name='clip:v1',
        ...     cuda_version='11.7',
        ...     format_priority=['onnx'],
        ...     parallelism=4,
        ...     inference_server='triton'
        ... )
    """
    return server_builder.build_docker_image(dc_pipeline, image_name, cuda_version, format_priority, parallelism, inference_server)
Wrapper for lazy import build_docker_image.

Args:
dc_pipeline ('towhee.RuntimPipeline'):
The pipeline to build as a model in the docker image.
image_name (`str`):
The name of the docker image.
cuda_version (`str`):
Cuda version.
format_priority (`list`):
The priority order of the model format.
parallelism (`int`):
The parallel number.
inference_server (`str`):
The inference server.

Examples:
>>> import towhee
>>> from towhee import pipe, ops

>>> p = (
...     pipe.input('url')
...         .map('url', 'image', ops.image_decode.cv2_rgb())
...         .map('image', 'vec', ops.image_embedding.timm(model_name='resnet50'))
...         .output('vec')
... )

>>> towhee.build_docker_image(
...     dc_pipeline=p,
...     image_name='clip:v1',
...     cuda_version='11.7',
...     format_priority=['onnx'],
...     parallelism=4,
...     inference_server='triton'
... )
towhee/__init__.py