-
Notifications
You must be signed in to change notification settings - Fork 27
/
Dockerfile
38 lines (31 loc) · 1.16 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
FROM eosio/eosio:release_2.1.x
WORKDIR /app
# install dependencies
RUN apt-get update
RUN apt-get install -y wget git build-essential cmake --no-install-recommends
RUN rm -rf /var/lib/apt/lists/*
# install eosio.cdt
RUN wget https://github.com/eosio/eosio.cdt/releases/download/v1.8.1/eosio.cdt_1.8.1-1-ubuntu-18.04_amd64.deb
RUN apt install ./eosio.cdt_1.8.1-1-ubuntu-18.04_amd64.deb
# build system contracts
RUN git clone -b release/1.9.x https://github.com/EOSIO/eosio.contracts.git
RUN cd /app/eosio.contracts && ./build.sh -c /usr/local/eosio.cdt
# build boot contract
RUN git clone -b release/2.1.x https://github.com/EOSIO/eos.git
RUN cd /app/eos/contracts/contracts/eosio.boot/ \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make
# Declare eosio key
ARG testnet_eosio_private_key
ARG testnet_eosio_public_key
ENV TESTNET_EOSIO_PRIVATE_KEY $testnet_eosio_private_key
ENV TESTNET_EOSIO_PUBLIC_KEY $testnet_eosio_public_key
COPY ./start.sh ./
COPY ./config.ini ./config/
COPY ./genesis.json ./
RUN cp -r /app/eosio.contracts/build/contracts /eosio.contracts
RUN cp -r /app/eos/contracts/contracts/eosio.boot/build /eosio.boot
RUN chmod +x ./start.sh
CMD ["./start.sh"]