From 5a9703f35ab234c3f1337ae0eed09df9d5462eaa Mon Sep 17 00:00:00 2001 From: Jakub Date: Thu, 22 Aug 2024 19:27:48 +0200 Subject: [PATCH] fix: copy libnegentropy.so from nim-build image (#2991) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We shouldn't assume it exists on the host. Introduced by: https://github.com/waku-org/nwaku/pull/2403 Signed-off-by: Jakub SokoĊ‚owski --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index bc18babfc6..f6a1472d48 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ ARG NIM_COMMIT ARG LOG_LEVEL=TRACE # Get build tools and required header files -RUN apk add --no-cache bash git build-base pcre-dev linux-headers curl jq +RUN apk add --no-cache bash git build-base openssl-dev pcre-dev linux-headers curl jq WORKDIR /app COPY . . @@ -47,7 +47,7 @@ RUN apk add --no-cache libgcc pcre-dev libpq-dev bind-tools RUN ln -s /usr/lib/libpcre.so /usr/lib/libpcre.so.3 # Fix for 'Error loading shared library libnegentropy.so: No such file or directory' -ADD ./libnegentropy.so ./ +COPY --from=nim-build /app/libnegentropy.so ./ # Copy to separate location to accomodate different MAKE_TARGET values COPY --from=nim-build /app/build/$MAKE_TARGET /usr/local/bin/