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 Jun 19, 2024
1 parent 2f8aa82 commit 3506a15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
12 changes: 3 additions & 9 deletions Dockerfile.mayhem
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,8 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential meson

COPY . /repo
WORKDIR /repo/build
RUN meson ..
RUN ninja

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

FROM ubuntu:22.04 as package

COPY --from=builder /deps /deps
COPY --from=builder /repo/build/peregrine.elf /repo/build/peregrine.elf
ENV LD_LIBRARY_PATH=/deps
COPY --from=builder /repo/build/peregrine.elf /
3 changes: 1 addition & 2 deletions Mayhemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ project: peregrine
target: peregrine

cmds:
- cmd: /repo/build/peregrine.elf /test.pe
filepath: /test.pe
- cmd: /peregrine.elf @@

0 comments on commit 3506a15

Please sign in to comment.