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 Apr 13, 2024
1 parent 664041c commit 61a13b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions Dockerfile.mayhem
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ WORKDIR /repo
RUN qmake
RUN make -j8

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

FROM ubuntu:20.04 as package

COPY --from=builder /deps /deps
COPY --from=builder /repo/cpi /repo/cpi
ENV LD_LIBRARY_PATH=/deps
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y qt5-default
COPY --from=builder /repo/cpi /
2 changes: 1 addition & 1 deletion Mayhemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ project: cpi
target: cpi

cmds:
- cmd: /repo/cpi @@
- cmd: /cpi @@

0 comments on commit 61a13b7

Please sign in to comment.