forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev.Dockerfile
47 lines (39 loc) · 910 Bytes
/
dev.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
# BUILDER
FROM ubuntu:latest as builder
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
COPY . /src
WORKDIR /src
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"]