Skip to content

Commit

Permalink
Add Docker example and git ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
gr0 committed Nov 13, 2023
1 parent ed7c790 commit 8e7928a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
18 changes: 18 additions & 0 deletions Docker/example.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM anchore/syft AS syft
WORKDIR /

FROM alpine
RUN apk add libc6-compat curl

ENV PATH "$PATH:/go/bin"
COPY go/bin/sbom /go/bin/

COPY --from=syft /syft /usr/bin/
COPY docker/config/syft/.syft.yaml /

ADD /~https://github.com/interlynk-io/sbomqs/releases/download/v0.0.19/sbomqs-linux-amd64 /go/bin/sbomqs
RUN chmod +rx /go/bin/sbomqs

RUN adduser --shell /bin/bash --system test
USER test
ENTRYPOINT /go/bin/sbom

0 comments on commit 8e7928a

Please sign in to comment.