CycloneDX / cyclonedx-cli

CycloneDX CLI tool for SBOM analysis, merging, diffs and format conversions.
https://cyclonedx.org/
Apache License 2.0
314 stars 62 forks source link

Dockerfile Problem #259

Open kemalmeler opened 2 years ago

kemalmeler commented 2 years ago

Hi,

When I try create image from Dockerfile in github, "COPY failed: file not found in build context or excluded by .dockerignore: stat bin/linux-x64/cyclonedx: file does not exist"

image

Dockerfile ; image

coderpatros commented 2 years ago

Hi @kmlr05, you need to build the binary first like the release process does https://github.com/CycloneDX/cyclonedx-cli/blob/5d836f69f3c07c1f993b22aaba1b74aabe87c0d9/.github/workflows/release.yml#L46-L55

Although you can skip the extra runtimes and just publish it for "linux-x64".