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

bin folder is not being displayed in the given github repo

Open PentestInd opened this issue 3 years ago • 1 comments

Not able to run the given dockerfile, after cloning the repo as I am getting below error message.

"COPY failed: file not found in build context or excluded by .dockerignore: stat bin/linux-x64/cyclonedx: file does not exist"

It is clear that '/bin/linux-x64/cyclonedx' path or folders are not present in the repo. Do we have any work around for this?

PentestInd avatar Mar 09 '22 21:03 PentestInd

You first need to build the binary locally.

This can be achieved by running

dotnet publish src/cyclonedx/cyclonedx.csproj -r linux-x64 --configuration Release --self-contained true /p:PublishSingleFile=true /p:IncludeNativeLibrariesInSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true --output bin/linux-x64

or downloading the Linux x64 binary of the latest release and saving it to that path.

coderpatros avatar Mar 20 '22 02:03 coderpatros