-
Notifications
You must be signed in to change notification settings - Fork 66
/
Dockerfile
44 lines (33 loc) · 1.04 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
# Tron Quickstart
FROM sullof/ubu18jdk8node10redis
LABEL maintainer="Francesco Sullo <[email protected]>"
# Prepare the work directory
RUN mkdir -p tron/conf
WORKDIR /tron
# Install proxy dependencies
RUN mkdir /tron/app
ADD app/package.json /tron/app/package.json
RUN cd app && npm install
# Configures full node
RUN mkdir FullNode
ADD conf/full.conf FullNode/fullnode.conf
ADD conf/FullNode.jar FullNode/FullNode.jar
RUN mkdir BlockParser
ADD conf/run.sh BlockParser/run.sh
ADD conf/BlockParser.jar BlockParser/BlockParser.jar
RUN mkdir eventron
ADD conf/process.json eventron/process.json
ADD conf/eventron eventron/eventron
# Separating install from src speeds up the rebuilding
# if the node app is changed, but has the ADD app/version
ADD app/index.js app/index.js
ADD app/version.js app/version.js
ADD app/src app/src
ADD scripts scripts
RUN chmod +x scripts/accounts-generation.sh
ADD tronWeb tronWeb
RUN chmod +x tronWeb
ADD pre-approve.sh pre-approve.sh
ADD quickstart.sh quickstart
RUN chmod +x quickstart
CMD ["./quickstart", "v2.1.1"]