forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
54 lines (44 loc) · 1.1 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# BUILDER
FROM ubuntu:latest as builder
ARG checkout="master"
ARG git_url="https://github.com/mroxso/bitcoin"
RUN apt update && apt install -y \
build-essential \
cmake \
git \
libboost-all-dev \
libssl-dev \
libzmq3-dev \
pkg-config \
build-essential \
libtool \
autotools-dev \
automake \
pkg-config \
bsdmainutils \
python3 \
libevent-dev \
libboost-dev \
libsqlite3-dev \
libminiupnpc-dev \
libnatpmp-dev \
libzmq3-dev \
systemtap-sdt-dev
WORKDIR /src
#RUN git clone https://github.com/mroxso/bitcoin
# Git clone a specific tag
RUN git clone ${git_url} /src
RUN git checkout tags/${checkout} -b ${checkout}
RUN ./autogen.sh && ./configure --without-gui && make -j $(nproc) && make install
# FINAL IMAGE
FROM ubuntu:latest as final
RUN apt update && apt upgrade -y
RUN apt install -y \
libminiupnpc-dev \
libnatpmp-dev \
libzmq3-dev \
systemtap-sdt-dev \
libevent-dev
COPY --from=builder /usr/local/bin/bitcoind /usr/local/bin/
COPY --from=builder /usr/local/bin/bitcoin-cli /usr/local/bin/
CMD ["bitcoind"]