-
Notifications
You must be signed in to change notification settings - Fork 1
/
DockerfileBuilder
24 lines (17 loc) · 1.2 KB
/
DockerfileBuilder
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:18.04 as builder
WORKDIR /
RUN apt-get update && apt-get install -y wget cmake build-essential zlib1g-dev clang
# Install boost 1.72.0
ADD https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.gz boost_1_72_0.tar.gz
RUN tar xfz boost_1_72_0.tar.gz && rm boost_1_72_0.tar.gz && cd boost_1_72_0 && ./bootstrap.sh && ./b2 \
--without-python --prefix=/usr -j 4 link=static runtime-link=static install && cd .. && rm -r boost_1_72_0/ && ldconfig
# Build libssl1.1.1b statically
ADD https://www.openssl.org/source/old/1.1.1/openssl-1.1.1b.tar.gz openssl-1.1.1b.tar.gz
RUN tar -xvf openssl-1.1.1b.tar.gz && cd openssl-1.1.1b && ./config -static --prefix=/usr/local/ssl \
&& make && make install && cd .. && rm -r openssl-1.1.1b/
# Build libcurl7.61.0 statically
ADD https://curl.se/download/curl-7.61.0.tar.gz curl-7.61.0.tar.gz
RUN tar -xvf curl-7.61.0.tar.gz && cd curl-7.61.0 && ./configure \
--disable-shared --enable-static --disable-sspi --disable-ftp --disable-file --disable-dict \
--disable-telnet --disable-tftp --disable-rtsp --disable-pop3 --disable-imap --disable-smtp --disable-gopher \
--disable-smb --with-ssl && make && make install && cd .. && rm -r curl-7.61.0/