Skip to content

Commit

Permalink
Dockerfile: Inject merge_syft_sbom script to /usr/local/bin
Browse files Browse the repository at this point in the history
When commit 49ba69d converted the image build to multi-stage it forgot
to install the merge_syft_sbom.py utility script that was previously
installed as part of copying the whole repo into the image to
/src/utils/merge_syft_sbom.py.
This patch takes a bit of a different path by installing the script as
a utility binary to a more standardized location.

Fixes: 49ba69d
Resolves: #582

Signed-off-by: Erik Skultety <[email protected]>
  • Loading branch information
eskultety committed Jul 24, 2024
1 parent d49a134 commit 6953607
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ COPY --from=golang_121 /usr/local/go /usr/local/go/go1.21
COPY --from=node_223 /usr/local/lib/node_modules/corepack /usr/local/lib/corepack
COPY --from=node_223 /usr/local/bin/node /usr/local/bin/node
COPY --from=builder /venv /venv
COPY --from=builder /src/utils/merge_syft_sbom.py /usr/local/bin/merge_syft_sbom

# link corepack, yarn, and go to standard PATH location
RUN ln -s /usr/local/lib/corepack/dist/corepack.js /usr/local/bin/corepack && \
Expand Down

0 comments on commit 6953607

Please sign in to comment.