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 Nov 5, 2024
1 parent 868b454 commit 2ce70e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 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/build
RUN cmake ..
RUN make -j8

RUN mkdir -p /deps
RUN ldd /repo/build/tinyrenderer | 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/tinyrenderer /repo/build/tinyrenderer
ENV LD_LIBRARY_PATH=/deps
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libgomp1
COPY --from=builder /repo/build/tinyrenderer /
3 changes: 1 addition & 2 deletions Mayhemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ project: tinyrenderer
target: tinyrenderer

cmds:
- cmd: /repo/build/tinyrenderer /test.obj
filepath: /test.obj
- cmd: /tinyrenderer @@

0 comments on commit 2ce70e6

Please sign in to comment.