cyclonedx-cli icon indicating copy to clipboard operation
cyclonedx-cli copied to clipboard

Dockerfile Problem

Open kemalmeler opened this issue 2 years ago • 1 comments

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

kemalmeler avatar Aug 17 '22 03:08 kemalmeler

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".

coderpatros avatar Aug 17 '22 05:08 coderpatros