Skip to content

Commit

Permalink
Remove ldd
Browse files Browse the repository at this point in the history
  • Loading branch information
rnshah9 authored and ForAllSecure Mayhem Bot committed Aug 25, 2024
1 parent 7efd504 commit 1e116a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions Dockerfile.mayhem
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ WORKDIR /repo/build
RUN cmake ..
RUN make -j8

RUN mkdir -p /deps
RUN ldd /repo/build/cnip | tr -s '[:blank:]' '\n' | grep '^/' | xargs -I % sh -c 'cp % /deps;'

FROM ubuntu:22.04 as package

COPY --from=builder /deps /deps
COPY --from=builder /repo/build/cnip /repo/build/cnip
COPY --from=builder /repo/build/cnip /
COPY --from=builder /repo/build/C/* /deps/
COPY --from=builder /repo/build/common/* /deps/
ENV LD_LIBRARY_PATH=/deps
2 changes: 1 addition & 1 deletion Mayhemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ project: psychec
target: cnip

cmds:
- cmd: /repo/build/cnip @@
- cmd: /cnip @@

0 comments on commit 1e116a7

Please sign in to comment.