forked from zoldur/Polis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (42 loc) · 1.58 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
## Base Image
FROM ubuntu:16.04
## Environment Variables
# ENV TMP_FOLDER=$(mktemp -d)
ENV CONFIG_FILE='aced.conf'
ENV CONFIGFOLDER='/root/.acedcore'
ENV COIN_DAEMON='/usr/local/bin/acedd'
ENV COIN_CLI='/usr/local/bin/aced-cli'
ENV COIN_REPO='https://github.com/Acedcoin/AceD/releases/download/1.8.1/Aced.tar.gz'
ENV COIN_NAME='AceD'
ENV COIN_PORT=24126
ENV CONFIG_FILE='aced.conf'
ENV CONFIGFOLDER='/root/.acedcore'
#ENV COIN_BS='http://149.28.231.161/bootstrap.zip'
ENV COINKEY=""
# ENV NODEIP=$(curl -s4 icanhazip.com)
ENV RED='\033[0;31m'
ENV GREEN='\033[0;32m'
ENV NC='\033[0m'
## Install Dependencies
RUN apt-get upgrade && apt-get update && apt-get install -y \
software-properties-common
RUN apt-add-repository -y ppa:bitcoin/bitcoin
RUN apt-get update && apt-get install -y \
build-essential libtool autoconf libssl-dev libboost-dev sudo automake \
make wget curl unzip ufw git pkg-config net-tools \
libboost-chrono-dev libboost-filesystem-dev libboost-program-options-dev \
libboost-system-dev libboost-test-dev libboost-thread-dev \
libdb4.8-dev bsdmainutils libdb4.8++-dev libminiupnpc-dev \
libgmp3-dev libzmq3-dev libevent-dev libdb5.3++
## Download Binaries and copy to system folder
WORKDIR /root
RUN wget -nv -O - $COIN_REPO | tar xvz -C /root
RUN cp /root/Aced/* /usr/local/bin \
&& strip /usr/local/bin/acedd /usr/local/bin/aced-cli \
&& chmod +x /usr/local/bin/acedd && chmod +x /usr/local/bin/aced-cli \
&& rm -rf /root/v18_bugfix
WORKDIR /root
COPY ./aced_install.sh ./
RUN chmod +x /root/aced_install.sh
CMD [ "aced_install.sh" ]
ENTRYPOINT [ "bash" ]