Minor optimization to reduce layers

master
Seth For Privacy 3 years ago committed by GitHub
parent ac9dc2c511
commit 803642298d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)" && 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/ COPY . /root/onion-monero-blockchain-explorer/
WORKDIR /root/onion-monero-blockchain-explorer/build WORKDIR /root/onion-monero-blockchain-explorer/build
RUN cmake .. RUN cmake .. && make -j"$(cat /nproc)"
# Compile xmrblocks with all available threads
RUN test -z "$NPROC" && nproc > /nproc || echo -n "$NPROC" > /nproc && make -j"$(cat /nproc)"
# Use ldd and awk to bundle up dynamic libraries for the final image # Use ldd and awk to bundle up dynamic libraries for the final image
RUN zip /lib.zip $(ldd xmrblocks | grep -E '/[^\ ]*' -o) RUN zip /lib.zip $(ldd xmrblocks | grep -E '/[^\ ]*' -o)

Loading…
Cancel
Save