-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
75 lines (60 loc) · 2.69 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
66
67
68
69
70
71
72
73
74
75
FROM debian:stretch
RUN apt-get update && apt-get install -y build-essential \
cmake \
git \
libboost-all-dev \
libcrypto++-dev \
libcrypto++6 \
autoconf \
automake \
groff \
libtool \
perl \
libcurl4-openssl-dev \
libssh2-1-dev \
libssl-dev \
libz-dev \
libedit-dev \
libgmp-dev \
libjsoncpp-dev \
libjsonrpccpp-dev \
libjsonrpccpp-tools \
libleveldb-dev \
libmicrohttpd-dev \
libminiupnpc-dev \
libncurses5-dev \
libreadline-dev \
opencl-headers \
musl \
musl-dev \
musl-tools
ENV CURL curl-7_48_0
ENV PREFIX /src/built
WORKDIR /src/deps
RUN git clone https://github.com/curl/curl
RUN cd curl \
&& git checkout ${CURL} \
&& ./buildconf \
&& ./configure --prefix=${PREFIX} --enable-static --disable-shared \
--disable-ldap --disable-ldaps --without-libidn \
--disable-rtsp --without-librtmp --disable-manual \
--disable-tls-srip --without-gnutls \
--without-ssl --without-libssh2 --without-zlib \
&& make \
&& make install
WORKDIR /src
ENV buildbranch=develop
ADD https://api.github.com/repos/ethereum/webthree-umbrella/compare/${buildbranch}...HEAD /dev/null
RUN git clone https://github.com/ethereum/webthree-umbrella
RUN cd webthree-umbrella && \
git checkout ${buildbranch} --force && \
git submodule update --init --recursive
RUN mkdir -p /src/webthree-umbrella/build
WORKDIR /src/webthree-umbrella/build
ADD cmake_build.sh ./
RUN sh ./cmake_build.sh
RUN make --jobs=2 eth solc soltest lllc
RUN install -s webthree/eth/eth /usr/local/bin/
RUN install -s solidity/solc/solc /usr/local/bin/
RUN install -s solidity/lllc/lllc /usr/local/bin/
RUN install -s solidity/test/soltest /usr/local/bin/