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

COPY . /repo
WORKDIR /repo/build
RUN cmake ..
RUN cmake .. -DCMAKE_INSTALL_PREFIX=/install
RUN make -j8

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

FROM ubuntu:22.04 as package

COPY --from=builder /deps /deps
COPY --from=builder /repo/bin/basisu /repo/bin/basisu
ENV LD_LIBRARY_PATH=/deps
COPY --from=builder /install /install
2 changes: 1 addition & 1 deletion Mayhemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ project: basis-universal
target: basisu

cmds:
- cmd: /repo/bin/basisu @@ -validate
- cmd: /install/bin/basisu @@ -validate
env:
DISABLE_SMOKETEST: '1'

0 comments on commit ca1789f

Please sign in to comment.