You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docker-monero-node/dockerfiles/monero_compile

31 lines
862 B
Plaintext

FROM ubuntu:20.04 as og
ENV DEBIAN_FRONTEND noninteractive
ARG threads
WORKDIR /opt/monero
RUN apt-get update && apt-get install -y \
build-essential cmake pkg-config libboost-all-dev \
libssl-dev libzmq3-dev libunbound-dev libsodium-dev libpgm-dev git
RUN git clone https://github.com/monero-project/monero --branch=v0.17.1.7 --depth=1 .
RUN git submodule update --init --force
RUN make -j$threads
FROM ubuntu:20.04
WORKDIR /data
COPY --from=og /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/
COPY --from=og /opt/monero/build/Linux/_no_branch_/release/bin/monerod /bin/monerod
COPY --from=og /opt/monero/build/Linux/_no_branch_/release/bin/monero-wallet-cli /bin/monero-wallet-cli
COPY --from=og /opt/monero/build/Linux/_no_branch_/release/bin/monero-wallet-rpc /bin/monero-wallet-rpc
EXPOSE 18080
EXPOSE 18081
EXPOSE 18082
EXPOSE 18083