Skip to content

Commit c746ce8

Browse files
committed
Docker image is too big.
Problem: Docker image is 1.18GB. Solution: Base ubuntu image is only 77.8MB so adding all deps adds 950MB. Added no-install-recommends reduces image size to 853MB. Additionally writing abbreviated xml types is disabled. Signed-off-by: Paul Hewlett <[email protected]>
1 parent c316b95 commit c746ce8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/sbom_scraper.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ log() {
7171
TOOL_NAME="https://github.com/jitsuin-inc/archivist-shell sbom_scraper.sh"
7272
#
7373
# Set this value and merge the change just before release
74-
TOOL_VERSION="v0.6.0"
74+
TOOL_VERSION="v0.6.2"
7575
TOOL_VENDOR="RKVST Inc"
7676
TOOL_HASH_ALG=SHA-256
7777
TOOL_HASH_CONTENT=$(shasum -a 256 "$0" | cut -d' ' -f1)
@@ -376,7 +376,7 @@ ET.SubElement(author, 'email').text = '$AUTHOR_EMAIL'
376376
377377
indent(root)
378378
379-
et.write("$PATCHED_OUTPUT", encoding='unicode', xml_declaration=True, default_namespace='')
379+
et.write("$PATCHED_OUTPUT", encoding='unicode', xml_declaration=True, default_namespace='', short_empty_elements=False)
380380
END
381381
)
382382

@@ -533,7 +533,7 @@ for f in ('licenses', 'copyright', 'cpe', 'purl', 'swid', 'modified', 'pedigree'
533533
component.append(val)
534534
535535
indent(root)
536-
et.write("$PATCHED_OUTPUT", encoding='unicode', xml_declaration=True, default_namespace='')
536+
et.write("$PATCHED_OUTPUT", encoding='unicode', xml_declaration=True, default_namespace='', short_empty_elements=False)
537537
END
538538
)
539539
fi

0 commit comments

Comments
 (0)