-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
28 lines (28 loc) · 1.09 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
FROM ubuntu:18.04
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get -y install git && \
apt-get -y install cmake && \
apt-get -y install libssl-dev && \
apt-get -y install g++ && \
apt-get -y install zlib1g-dev && \
apt-get -y install wget && \
apt-get -y install python3 && \
apt-get -y install python3-pip
RUN git clone https://github.com/newton-blockchain/ton && \
cd ./ton && \
git submodule update --init --recursive && \
cd .. && \
mkdir liteclient-build && \
cd liteclient-build && \
cmake ../ton -DCMAKE_BUILD_TYPE=Release && \
cmake --build . --target lite-client && \
cmake --build . --target fift && \
cmake --build . --target func && \
wget https://newton-blockchain.github.io/global.config.json
EXPOSE 8080
RUN pip3 install web.py==0.40
ARG CACHE_DATE=2020-01-01
COPY . /astonished
WORKDIR /astonished
CMD python3 main.py 8080 "/liteclient-build/lite-client/lite-client -C /liteclient-build/global.config.json" "/liteclient-build/crypto/fift -I/ton/crypto/fift/lib/ -i" "EQDybPok_wqfA0ASUtds87EbJZ2zItVpaapsHd9LHqpp1p0J"