From 76fb35db008fc008ec407dba4c8f90a69c796e68 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Mon, 22 Nov 2021 16:09:59 +0800 Subject: [PATCH] Fix docker build https://github.com/moneroexamples/onion-monero-blockchain-explorer/issues/250 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 048b689..6dc0332 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,12 +43,12 @@ ENV BOOST_DEBUG 1 WORKDIR /root # Clone and compile monerod with all available threads -ARG MONERO_BRANCH ARG NPROC RUN git clone --recursive --branch ${MONERO_BRANCH} https://github.com/monero-project/monero.git \ && cd monero \ && test -z "$NPROC" && nproc > /nproc || echo -n "$NPROC" > /nproc && make -j"$(cat /nproc)" + # Copy and cmake xmrblocks COPY . /root/onion-monero-blockchain-explorer/ WORKDIR /root/onion-monero-blockchain-explorer/build @@ -96,4 +96,4 @@ EXPOSE 8081 ENTRYPOINT ["/bin/sh", "-c", "./xmrblocks"] # Set sane defaults that are overridden if the user passes any commands -CMD ["--enable-json-api", "--enable-autorefresh-option", "--enable-emission-monitor", "--enable-pusher"] \ No newline at end of file +CMD ["--enable-json-api", "--enable-autorefresh-option", "--enable-emission-monitor", "--enable-pusher"]