def METHOD_NAME(layer_obj, template):
    """This is the SPDX document containing just the packages found at
    container build time"""
    timestamp = spdx_common.get_timestamp()
    docu_dict = {
        'SPDXID': json_formats.spdx_id,
        'spdxVersion': json_formats.spdx_version,
        'creationInfo': {
            'created': json_formats.created.format(
                timestamp=timestamp),
            'creators': json_formats.creator.format(
                version=get_git_rev_or_version()[1]),
            'licenseListVersion': json_formats.license_list_version,
        },
        'name': json_formats.document_name_snapshot,
        'dataLicense': json_formats.data_license,
        'comment': json_formats.document_comment,
        'documentNamespace': get_document_namespace_snapshot(timestamp),
        # we will list all the unique package SPDXRefs here later
        'documentDescribes': [],
        # these will contain just the packages as there is no layer
        # package at the time of this document's generation
        'packages': [],
        # we will fill in document to package ref relationships later
        'relationships': []
    }
    # Add list of package dictionaries to packages list, if they exist
    pkgs_dict_list, package_refs = phelpers.get_layer_packages_list(
        layer_obj, template)
    if pkgs_dict_list:
        docu_dict['packages'] = pkgs_dict_list
        docu_dict['documentDescribes'] = package_refs
    # add the package relationships to the document
    for ref in package_refs:
        docu_dict['relationships'].append(json_formats.get_relationship_dict(
            json_formats.spdx_id, ref, 'DESCRIBES'))
    # Add list of file dictionaries, if they exist
    files = fhelpers.get_layer_files_list(layer_obj, template, timestamp)
    if files:
        docu_dict['files'] = files
    # Add package and file extracted license texts, if they exist
    extracted_texts = lhelpers.get_layer_extracted_licenses(layer_obj)
    if extracted_texts:
        docu_dict['hasExtractedLicensingInfos'] = extracted_texts
    return docu_dict