-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·65 lines (50 loc) · 1.31 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
54
55
56
57
58
59
60
61
62
63
64
65
FROM ubuntu:20.04
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y build-essential git make cmake clang libgflags-dev zlib1g-dev libssl-dev libreadline-dev libmicrohttpd-dev pkg-config libgsl-dev python3 python3-dev python3-pip nodejs
#
# Emscripten
#
WORKDIR /build
RUN git clone https://github.com/emscripten-core/emsdk.git
WORKDIR /build/emsdk
RUN ./emsdk install 3.1.18 && ./emsdk activate 3.1.18
#
# ZLib
#
WORKDIR /build
RUN git clone --depth=1 https://github.com/madler/zlib.git /build/zlib
COPY build-zlib.sh .
RUN /bin/bash ./build-zlib.sh
#
# OpenSSL
#
WORKDIR /build
RUN git clone --depth=1 --branch OpenSSL_1_1_1j https://github.com/openssl/openssl.git /build/openssl
RUN git clone --depth=1 --branch OpenSSL_1_1_1j https://github.com/openssl/openssl.git /build/openssl-es
COPY build-openssl.sh .
RUN /bin/bash ./build-openssl.sh
#
# TON
#
RUN mkdir -p /build/ton
WORKDIR /build/ton
RUN git clone -b 'v2023.04' --single-branch --depth 1 --recursive https://github.com/ton-blockchain/ton.git .
COPY ton.patch .
RUN git apply ton.patch
#
# Build native libraries
#
WORKDIR /build
COPY ton-prepare.sh .
RUN /bin/bash ./ton-prepare.sh
#
# Emscripten
#
WORKDIR /build
COPY ton-build.sh .
RUN /bin/bash ./ton-build.sh
COPY ton-export.sh .
#
# Export
#
CMD ["/bin/bash", "./ton-export.sh"]