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 Oct 15, 2024
1 parent 437696f commit 441f306
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions Dockerfile.mayhem
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential automake p
COPY . /repo
WORKDIR /repo
RUN ./autogen.sh
RUN ./configure
RUN ./configure --prefix=/install
RUN make -j8

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

FROM ubuntu:20.04 as package

COPY --from=builder /deps /deps
COPY --from=builder /repo/elf2nro /repo/elf2nro
ENV LD_LIBRARY_PATH=/deps
COPY --from=builder /install /install
COPY --from=builder /repo/elf2nro /
2 changes: 1 addition & 1 deletion Mayhemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ project: switch-tools
target: elf2nro

cmds:
- cmd: /repo/elf2nro @@ out
- cmd: /install/bin/elf2nro @@ out

0 comments on commit 441f306

Please sign in to comment.