Skip to content

Commit

Permalink
Remove ldd
Browse files Browse the repository at this point in the history
  • Loading branch information
rnshah9 committed Jul 27, 2022
1 parent dce8791 commit a6fceb8
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 @@ -3,15 +3,11 @@ FROM --platform=linux/amd64 ubuntu:20.04 as builder
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential libyaml-dev

ADD . /repo
COPY . /repo
WORKDIR /repo
RUN make -j8

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

FROM ubuntu:20.04 as package

COPY --from=builder /deps /deps
COPY --from=builder /repo/build/debug/planner /repo/build/debug/planner
ENV LD_LIBRARY_PATH=/deps
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libyaml-dev
COPY --from=builder /repo/build/debug/planner /
2 changes: 1 addition & 1 deletion Mayhemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ project: libcyaml
target: planner

cmds:
- cmd: /repo/build/debug/planner @@ out
- cmd: /planner @@ out

0 comments on commit a6fceb8

Please sign in to comment.