-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
62 lines (52 loc) · 1.7 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
FROM ubuntu:16.04
ARG CLANG_VERSION=7.0.1
ARG CMAKE_VERSION=3.13.4
ARG PROTOBUF_VERSION=3.7.0
# Install the basics
RUN apt-get update && apt-get install -y curl python-software-properties build-essential xz-utils ruby-full
# Make latest NodeJS available
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
# Install all required packages
RUN apt-get install -y \
autoconf \
git \
libcurl4-openssl-dev \
libicu-dev \
libssl-dev \
libtool \
ninja-build \
nodejs \
pkg-config \
unzip
# Install clang
ENV CLANG_VERSION=$CLANG_VERSION
RUN curl -fSsL http://releases.llvm.org/$CLANG_VERSION/clang+llvm-$CLANG_VERSION-x86_64-linux-gnu-ubuntu-16.04.tar.xz -o clang.tar.xz \
&& tar -xJf clang.tar.xz --directory /usr --strip-components=1 \
&& rm -rf clang.tar.xz
# Install Boost
RUN curl -fSsL https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.gz -o boost.tar.gz \
&& tar xzf boost.tar.gz \
&& mv boost_1_66_0/boost /usr/include \
&& rm -rf boost*
# Install CMake
ENV CMAKE_VERSION=$CMAKE_VERSION
RUN cd /usr/local/src \
&& curl -fSsOL https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION.tar.gz \
&& tar xvf cmake-$CMAKE_VERSION.tar.gz \
&& cd cmake-$CMAKE_VERSION \
&& ./bootstrap --system-curl \
&& make \
&& make install \
&& cd .. \
&& rm -rf cmake*
RUN cmake --version
# Clean Up
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Clone repo
ENV CC=/usr/bin/clang
ENV CXX=/usr/bin/clang++
RUN git clone https://github.com/TrustWallet/wallet-core.git \
&& cd wallet-core \
&& export PREFIX=/usr/local \
&& tools/install-dependencies
CMD ["/bin/bash"]