|
|
@ -43,12 +43,12 @@ ENV BOOST_DEBUG 1
|
|
|
|
WORKDIR /root
|
|
|
|
WORKDIR /root
|
|
|
|
|
|
|
|
|
|
|
|
# Clone and compile monerod with all available threads
|
|
|
|
# Clone and compile monerod with all available threads
|
|
|
|
ARG MONERO_BRANCH
|
|
|
|
|
|
|
|
ARG NPROC
|
|
|
|
ARG NPROC
|
|
|
|
RUN git clone --recursive --branch ${MONERO_BRANCH} https://github.com/monero-project/monero.git \
|
|
|
|
RUN git clone --recursive --branch ${MONERO_BRANCH} https://github.com/monero-project/monero.git \
|
|
|
|
&& cd monero \
|
|
|
|
&& cd monero \
|
|
|
|
&& 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 xmrblocks
|
|
|
|
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
|
|
|
@ -96,4 +96,4 @@ EXPOSE 8081
|
|
|
|
ENTRYPOINT ["/bin/sh", "-c", "./xmrblocks"]
|
|
|
|
ENTRYPOINT ["/bin/sh", "-c", "./xmrblocks"]
|
|
|
|
|
|
|
|
|
|
|
|
# Set sane defaults that are overridden if the user passes any commands
|
|
|
|
# Set sane defaults that are overridden if the user passes any commands
|
|
|
|
CMD ["--enable-json-api", "--enable-autorefresh-option", "--enable-emission-monitor", "--enable-pusher"]
|
|
|
|
CMD ["--enable-json-api", "--enable-autorefresh-option", "--enable-emission-monitor", "--enable-pusher"]
|
|
|
|