From 2ce70e6d3c3a414a3e91279147bed92a1d2d106c Mon Sep 17 00:00:00 2001 From: Raj Shah Date: Sat, 30 Jul 2022 05:26:24 +0000 Subject: [PATCH] Remove ldd --- Dockerfile.mayhem | 10 +++------- Mayhemfile | 3 +-- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Dockerfile.mayhem b/Dockerfile.mayhem index ae842412..7f0b6f21 100644 --- a/Dockerfile.mayhem +++ b/Dockerfile.mayhem @@ -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 / diff --git a/Mayhemfile b/Mayhemfile index e012bdf8..e08d39bb 100644 --- a/Mayhemfile +++ b/Mayhemfile @@ -2,5 +2,4 @@ project: tinyrenderer target: tinyrenderer cmds: - - cmd: /repo/build/tinyrenderer /test.obj - filepath: /test.obj + - cmd: /tinyrenderer @@