<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def build(path: str) -> dict: """Builds the container from the specified docker file path"""

    update_base_image(path)
    match = file_pattern.search(os.path.basename(path))
    build_id = match.group('id')
    tags = [
        '{}:{}-{}'.format(HUB_PREFIX, version, build_id),
        '{}:latest-{}'.format(HUB_PREFIX, build_id),
        '{}:current-{}'.format(HUB_PREFIX, build_id)
    ]
    if build_id == 'standard':
        tags.append('{}:latest'.format(HUB_PREFIX))

    command = 'docker build --file "{}" {} .'.format(
        path,
        ' '.join(['-t {}'.format(t) for t in tags])
    )

    print('[BUILDING]:', build_id)
    os.system(command)

    return dict(
        id=build_id,
        path=path,
        command=command,
        tags=tags
    )