forked from bcosorg/bcos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-centos
32 lines (27 loc) · 952 Bytes
/
Dockerfile-centos
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
FROM centos:7
LABEL maintainer hi@bcos.org.cn
# aliyun
# RUN curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo \
# && yum clean all && yum makecache fast && yum -y update
RUN yum -y -q install epel-release && yum -q -y install \
git \
cmake3 \
make \
gcc-c++ \
boost-devel \
leveldb-devel \
curl-devel \
libmicrohttpd-devel \
gmp-devel \
openssl-devel \
&& git clone https://github.com/bcosorg/bcos.git \
&& cd bcos && mkdir build && cd build \
&& cmake3 -DEVMJIT=OFF -DTESTS=OFF -DTOOLS=Off -DMINIUPNPC=OFF .. \
&& make \
&& make install \
&& mkdir /nodedata && cd ../docker && cp nodeConfig/node-0/* /nodedata \
&& cd / && rm -rf bcos \
&& yum -y remove git cmake3 make gcc-c++ unzip \
&& yum clean all
EXPOSE 35500 53300
CMD ["/usr/local/bin/bcoseth","--genesis","/nodedata/genesis.json", "--config","/nodedata/config.json"]