-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
53 lines (43 loc) · 1.41 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
50
51
52
53
# syntax=docker/dockerfile:1
FROM ubuntu:20.04
RUN apt-get update
RUN apt-get update --fix-missing
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata
RUN apt-get -y install zip unzip libncurses5 wget git build-essential cmake curl libboost-all-dev libcurl4-openssl-dev libgmp-dev libssl-dev libusb-1.0.0-dev libzstd-dev time pkg-config llvm-11-dev nginx npm yarn
RUN npm install -D webpack-cli
RUN npm install -D webpack
RUN npm install -D webpack-dev-server
WORKDIR /app
# get Mandel
RUN wget https://github.com/larryk85/ENF-Binaries/releases/download/v1.0/mandel_3.0.5_amd64.deb
RUN apt install ./mandel_3.0.5_amd64.deb
# get CDT
RUN wget https://github.com/larryk85/ENF-Binaries/releases/download/v1.0/cdt_1.8.1_amd64.deb
RUN apt install ./cdt_1.8.1_amd64.deb
# get Contracts
RUN git clone https://github.com/eosnetworkfoundation/mandel-contracts
WORKDIR /app/mandel-contracts
RUN git pull
RUN git checkout larryk85/mandel-update
RUN mkdir build
WORKDIR /app/mandel-contracts/build
RUN cmake ..
RUN make -j4
WORKDIR /app
COPY ./scripts/ .
RUN chmod +x start_node.sh
RUN chmod +x setup_system.sh
RUN chmod +x write_context.sh
RUN mv my_init /sbin
RUN ./setup_system.sh
# thanks to github.com/phusion
# this should solve reaping issues of stopped nodes
CMD ["/sbin/my_init"]
# port for nodeos p2p
EXPOSE 9876
# port for nodeos http
EXPOSE 8888
# port for state history
EXPOSE 8080
# port for webapp
EXPOSE 8000