-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
45 lines (35 loc) · 1.03 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
FROM coinpit/nodejs
ENV TESTNET livenet
ENV USER root
WORKDIR /opt/insight
RUN apt-get update \
&& apt-get install -y wget \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& apt-get install libtool pkg-config build-essential autoconf automake -y \
&& apt-get install software-properties-common -y \
&& add-apt-repository ppa:chris-lea/zeromq \
&& apt-get update \
&& apt-get install libzmq3-dev -y \
&& npm install -g bitcore-node
ADD . /opt/insight
#create livenet insight
RUN cd /opt/insight \
&& bitcore-node create livenet \
&& cd livenet \
&& bitcore-node install insight-api \
&& bitcore-node install insight-ui \
&& mv node_modules ..
#create testnet insight
RUN cd /opt/insight \
&& bitcore-node create -t testnet \
&& cd testnet \
&& bitcore-node install insight-api \
&& bitcore-node install insight-ui \
&& rm -rf node_modules
RUN rm -rf /var/lib/apt/lists/*
VOLUME /var/lib/insight
RUN chmod 755 run.sh
EXPOSE 3001
CMD ./run.sh