Tern is a software composition analysis tool and Python library that generates a Software Bill of Materials for container images and Dockerfiles. The SBOM that Tern generates will give you a layer-by-layer view of what's inside your container in a variety of formats including human-readable, JSON, HTML, SPDX and more.
This is a prototype for the ability to export in different versions of SPDX. It fixes https://github.com/tern-tools/tern/issues/1211