Skip to content

Commit e2fb2f6

Browse files
committed
Remove ldd
1 parent f826f4b commit e2fb2f6

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

Dockerfile.mayhem

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential cmake pyth
55

66
COPY . /repo
77
WORKDIR /repo/build
8-
RUN cmake ..
8+
RUN cmake .. -DCMAKE_INSTALL_PREFIX=/install
99
RUN make -j8
10-
11-
RUN mkdir -p /deps
12-
RUN ldd /repo/build/pycdc | tr -s '[:blank:]' '\n' | grep '^/' | xargs -I % sh -c 'cp % /deps;'
10+
RUN make install
1311

1412
FROM ubuntu:22.04 as package
15-
16-
COPY --from=builder /deps /deps
17-
COPY --from=builder /repo/build/pycdc /repo/build/pycdc
18-
ENV LD_LIBRARY_PATH=/deps
13+
COPY --from=builder /install /install

Mayhemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ project: pycdc
22
target: pycdc
33

44
cmds:
5-
- cmd: /repo/build/pycdc @@
5+
- cmd: /install/bin/pycdc @@

0 commit comments

Comments
 (0)