-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (21 loc) · 1.06 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
30
31
32
33
34
# Author: Stephan M. February <[email protected]>
FROM ubuntu:20.04
RUN apt-get -q update && apt-get install --no-install-recommends -y -q gnupg2 curl git ca-certificates apt-transport-https openssh-client \
&& apt-get install -y -q cron
# Download and install latest version of BitcoinSV Node
RUN curl https://download.bitcoinsv.io/bitcoinsv/1.0.8/bitcoin-sv-1.0.8-x86_64-linux-gnu.tar.gz -o /tmp/bitcoin-sv-1.0.8-x86_64-linux-gnu.tar.gz \
&& tar zxvf /tmp/bitcoin-sv-1.0.8-x86_64-linux-gnu.tar.gz -C /opt
# softlink bitcoin binaries into path
RUN ln -s /opt/bitcoin-sv-1.0.8/bin/bitcoin-cli /usr/bin \
&& ln -s /opt/bitcoin-sv-1.0.8/bin/bitcoind /usr/bin \
&& ln -s /opt/bitcoin-sv-1.0.8/bin/bitcoin-tx /usr/bin
# Create location for node's data
RUN mkdir -p /usr/var/bitcoin-data
# Place node config file in data folder
COPY bitcoin.conf /usr/var/bitcoin-data
COPY scheduler.txt /tmp
COPY bashrc /root/.bashrc
RUN crontab /tmp/scheduler.txt
COPY launch.sh /usr/bin
RUN chmod +x /usr/bin/launch.sh
ENTRYPOINT ["/bin/bash", "/usr/bin/launch.sh"]