forked from Aviator-Coding/docker-ccbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (41 loc) · 1.17 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
FROM ubuntu:16.04
LABEL maintainer="Aviator" \
discord="Aviator#1024"
RUN apt-get update && \
apt-get --no-install-recommends --yes install \
git \
automake \
build-essential \
libtool \
autotools-dev \
autoconf \
pkg-config \
libssl-dev \
libboost-all-dev \
libevent-dev \
bsdmainutils \
vim \
software-properties-common && \
rm -rf /var/lib/apt/lists/*
RUN add-apt-repository ppa:bitcoin/bitcoin && \
apt-get update && \
apt-get --no-install-recommends --yes install \
libdb4.8-dev \
libdb4.8++-dev \
libminiupnpc-dev && \
rm -rf /var/lib/apt/lists/*
WORKDIR /ccbc
ENV CCBC_VERSION v1.0.0.4
RUN git clone -b master https://github.com/CryptoCashBack-Hub/CCBC.git . && \
git checkout $CCBC_VERSION && \
./autogen.sh && \
./configure && \
make &&\
strip /ccbc/src/ccbcd /ccbc/src/ccbc-cli && \
mv /ccbc/src/ccbcd /usr/local/bin/ && \
mv /ccbc/src/ccbc-cli /usr/local/bin/ && \
# clean
rm -rf /ccbc
VOLUME ["/root/.ccbc"]
EXPOSE 5520/tcp
CMD ccbcd -printtoconsole