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 Jan 14, 2025
1 parent f0b7d62 commit a0fd102
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions Dockerfile.mayhem
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,5 @@ COPY . /repo
WORKDIR /repo/myc/src
RUN make -j8

RUN mkdir -p /deps
RUN ldd /repo/myc/src/myc | 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/myc/src/myc /repo/myc/src/myc
ENV LD_LIBRARY_PATH=/deps
COPY --from=builder /repo/myc/src/myc /
2 changes: 1 addition & 1 deletion Mayhemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ project: ucc162-3
target: myc

cmds:
- cmd: /repo/myc/src/myc @@
- cmd: /myc @@

0 comments on commit a0fd102

Please sign in to comment.