blob: 8fbce9c2639678e6cb8826947713b8fbe8df3b5b [file] [log] [blame]
Tatsuhiro Tsujikawa7859cb42019-09-08 17:07:03 +09001FROM k8s.gcr.io/debian-base-amd64:1.0.0
2
3RUN /usr/local/bin/clean-install \
4 git g++ make binutils autoconf automake autotools-dev libtool \
5 pkg-config libev-dev libjemalloc-dev \
6 libev4 libjemalloc1 ca-certificates && \
7 git clone --depth 1 -b openssl-quic-draft-22 https://github.com/tatsuhiro-t/openssl && \
8 cd openssl && ./config enable-tls1_3 --openssldir=/etc/ssl && make -j$(nproc) && make install_sw && cd .. && rm -rf openssl && \
9 git clone --depth 1 https://github.com/ngtcp2/nghttp3 && \
10 cd nghttp3 && autoreconf -i && \
11 ./configure --enable-lib-only && \
12 make -j$(nproc) && make install-strip && cd .. && rm -rf nghttp3 && \
13 git clone --depth 1 -b draft-22 https://github.com/ngtcp2/ngtcp2 && \
14 cd ngtcp2 && autoreconf -i && \
15 ./configure && \
16 make -j$(nproc) && make install-strip && cp examples/server examples/client /usr/local/bin && cd .. && rm -rf ngtcp2 && \
17 strip /usr/local/lib/*.so.*.* /usr/local/lib/engines-*/*.so && \
18 rm -rf /usr/local/lib/libssl.so /usr/local/lib/libcrypto.so /usr/local/lib/libssl.a /usr/local/lib/libcrypto.a /usr/local/lib/pkgconfig/*ssl.pc /usr/local/include/openssl/* && \
19 apt-get -y purge git g++ make binutils autoconf automake autotools-dev libtool pkg-config \
20 libev-dev libjemalloc-dev && \
21 apt-get -y autoremove --purge && \
22 rm -rf /var/log/*