-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.ubuntu22.04
56 lines (45 loc) · 1.06 KB
/
Dockerfile.ubuntu22.04
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
55
56
# Copyright (c) 2023 Bank of Italy
# Distributed under the GNU AGPLv3 software license, see the accompanying COPYING file.
FROM ubuntu:22.04
# toolchain deps
RUN apt update && apt install --no-install-recommends -y \
autoconf \
automake \
bsdextrautils \
ca-certificates \
cmake \
g++ \
gcc \
git \
jq \
libtool \
make \
openssh-client \
pkg-config \
python3 \
xxd \
zlib1g-dev
# build deps
RUN apt install --no-install-recommends -y \
libargtable2-dev \
libboost-filesystem1.74-dev \
libboost-log1.74-dev \
libboost-program-options1.74-dev \
libboost-test1.74-dev \
libboost-thread1.74-dev \
libcurl4-openssl-dev \
libdb5.3++-dev \
libevent-dev \
libsqlite3-dev \
libssl-dev \
libzmq3-dev \
swi-prolog
RUN mkdir /itcoin-fbft
WORKDIR /itcoin-fbft
COPY . /itcoin-fbft
RUN mkdir /itcoin-fbft/build
WORKDIR /itcoin-fbft/build
RUN cmake ..
# Put itcoin-core in a dedicated layer.
RUN make itcoin-core-libraries -j $(nproc --ignore=1)
RUN make -j $(nproc --ignore=1)