From 803642298d37557a9a0fc368fdbc242abc6b6568 Mon Sep 17 00:00:00 2001 From: Seth For Privacy Date: Mon, 22 Nov 2021 13:29:49 +0000 Subject: [PATCH] Minor optimization to reduce layers --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6dc0332..863d2ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,13 +49,10 @@ RUN git clone --recursive --branch ${MONERO_BRANCH} https://github.com/monero-pr && test -z "$NPROC" && nproc > /nproc || echo -n "$NPROC" > /nproc && make -j"$(cat /nproc)" -# Copy and cmake xmrblocks +# Copy and cmake/make xmrblocks with all available threads COPY . /root/onion-monero-blockchain-explorer/ WORKDIR /root/onion-monero-blockchain-explorer/build -RUN cmake .. - -# Compile xmrblocks with all available threads -RUN test -z "$NPROC" && nproc > /nproc || echo -n "$NPROC" > /nproc && make -j"$(cat /nproc)" +RUN cmake .. && make -j"$(cat /nproc)" # Use ldd and awk to bundle up dynamic libraries for the final image RUN zip /lib.zip $(ldd xmrblocks | grep -E '/[^\ ]*' -o)