-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (29 loc) · 943 Bytes
/
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
30
31
32
33
34
35
36
37
38
39
40
FROM ubuntu
LABEL MAINTAINER="Richard Holzeis <[email protected]>"
LABEL org.opencontainers.image.authors="[email protected]"
LABEL org.opencontainers.image.source="https://github.com/holzeis/signet"
ARG VERSION=22.0
ENV FILENAME bitcoin-${VERSION}-aarch64-linux-gnu.tar.gz
ENV DOWNLOAD_URL https://bitcoincore.org/bin/bitcoin-core-${VERSION}/${FILENAME}
RUN apt update \
&& apt install wget -y \
&& wget $DOWNLOAD_URL \
&& tar xzvf /$FILENAME \
&& mkdir /root/.bitcoin \
&& mv /bitcoin-${VERSION}/bin/* /usr/local/bin/ \
&& rm -rf /bitcoin-${VERSION}/ \
&& rm -rf /$FILENAME \
&& apt remove wget -y
EXPOSE 38333
RUN apt install jq -y \
&& apt install git -y \
&& apt install python3 -y \
&& apt install bc -y \
&& git clone https://github.com/bitcoin/bitcoin.git
RUN apt install rsync -y
COPY setup.sh /setup.sh
RUN chmod +x /setup.sh \
&& ./setup.sh
COPY run.sh /run.sh
RUN chmod +x /run.sh
CMD /run.sh