-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
30 lines (22 loc) · 1.11 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM ubuntu:latest
LABEL maintainer="[email protected]" description="Monero blockchain node (with GPG verified binary)"
RUN apt-get update && apt-get install -y curl bzip2 gawk git gnupg libpcsclite-dev
WORKDIR /root
RUN git clone --depth=1 https://github.com/monero-project/monero.git && \
gpg --import monero/utils/gpg_keys/* && \
curl https://src.getmonero.org/downloads/hashes.txt > hashes.txt && \
awk -i inplace '!p;/^-----END PGP SIGNATURE-----/{p=1}' hashes.txt && \
gpg --verify hashes.txt && \
cat hashes.txt| grep "monero-linux-x64-v" | awk -F", " '{$0=$1}1' > binary.txt && \
cat hashes.txt| grep "monero-linux-x64-v" | awk -F", " '{$0=$2}1' > sha256.txt && \
rm -r monero
RUN curl https://downloads.getmonero.org/cli/`cat binary.txt` -O && \
echo `cat sha256.txt` '' `cat binary.txt` | sha256sum -c - && \
tar -xvf *.tar.bz2 && \
cp ./monero-x86_64-linux-gnu-*/monerod . && \
rm *.tar.bz2 && \
rm -r monero-x86_64-linux-gnu-*
VOLUME /root/.bitmonero
EXPOSE 18080 18081
ENTRYPOINT ["./monerod"]
CMD ["--restricted-rpc", "--rpc-bind-ip=0.0.0.0", "--confirm-external-bind", "--non-interactive"]