From a2d9b625b25e10477fe0b735cd0b1828f0d972c1 Mon Sep 17 00:00:00 2001 From: Raj Shah Date: Wed, 27 Jul 2022 08:14:42 +0000 Subject: [PATCH] Remove ldd --- Dockerfile.mayhem | 13 ++++--------- Mayhemfile | 2 +- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/Dockerfile.mayhem b/Dockerfile.mayhem index 8f43b0e6..06794ad4 100644 --- a/Dockerfile.mayhem +++ b/Dockerfile.mayhem @@ -3,18 +3,13 @@ FROM --platform=linux/amd64 ubuntu:20.04 as builder RUN apt-get update RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential automake libtool pkg-config bison flex -ADD . /repo +COPY . /repo WORKDIR /repo RUN libtoolize -qi RUN autoreconf -RUN ./configure +RUN ./configure --prefix=/install RUN make - -RUN mkdir -p /deps -RUN ldd /repo/es | 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/es /repo/es -ENV LD_LIBRARY_PATH=/deps +COPY --from=builder /install /install diff --git a/Mayhemfile b/Mayhemfile index 7d45ca0e..c75a16c7 100644 --- a/Mayhemfile +++ b/Mayhemfile @@ -2,4 +2,4 @@ project: es-shell target: es cmds: - - cmd: /repo/es @@ + - cmd: /install/bin/es @@