-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
56 lines (46 loc) · 1.09 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
55
56
FROM centos:7 as builder
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
RUN yum -y install \
automake \
boost-devel \
gcc \
gcc-c++ \
git \
libcap-devel \
libdb4-cxx-devel \
libevent-devel \
libseccomp-devel \
libtool \
make \
miniupnpc-devel \
openssl-devel \
patch \
protobuf-devel \
;
ARG VERSION
RUN set -ex; \
git clone --depth 1 -b v${VERSION} --recurse-submodules https://github.com/vergecurrency/VERGE.git /root/verge; \
cd /root/verge; \
./autogen.sh; \
CPPFLAGS='-I/usr/include/libdb4 -fPIC' ./configure --disable-tests --disable-wallet --with-daemon --with-gui=no --prefix=/root/prefix; \
make -j$(nproc); \
make install
FROM centos:7
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
RUN yum -y install \
boost-chrono \
boost-filesystem \
boost-program-options \
boost-system \
boost-thread \
libdb4-cxx \
libevent \
libpcap \
libseccomp \
miniupnpc \
openssl \
;
COPY --from=builder /root/prefix /usr
RUN useradd -m -u 1000 -s /bin/bash runner
USER runner
ENTRYPOINT ["verged"]