• Home
  • Raw
  • Download

Lines Matching +full:debian +full:- +full:clang

1 FROM debian:11 as build
3 RUN apt-get update && \
4 apt-get install -y --no-install-recommends \
5 git clang make binutils autoconf automake autotools-dev libtool \
6 pkg-config \
7 zlib1g-dev libev-dev libjemalloc-dev ruby-dev libc-ares-dev bison \
8 libelf-dev
10 RUN git clone --depth 1 -b OpenSSL_1_1_1u+quic https://github.com/quictls/openssl && \
12 ./config --openssldir=/etc/ssl && \
13 make -j$(nproc) && \
16 rm -rf openssl
18 RUN git clone --depth 1 -b v0.13.0 https://github.com/ngtcp2/nghttp3 && \
20 autoreconf -i && \
21 ./configure --enable-lib-only && \
22 make -j$(nproc) && \
23 make install-strip && \
25 rm -rf nghttp3
27 RUN git clone --depth 1 -b v0.17.0 https://github.com/ngtcp2/ngtcp2 && \
29 autoreconf -i && \
30 ./configure --enable-lib-only \
31 LIBTOOL_LDFLAGS="-static-libtool-libs" \
32 OPENSSL_LIBS="-l:libssl.a -l:libcrypto.a -ldl -lpthread" \
34 make -j$(nproc) && \
35 make install-strip && \
37 rm -rf ngtcp2
39 RUN git clone --depth 1 -b v1.2.0 https://github.com/libbpf/libbpf && \
41 PREFIX=/usr/local make -C src install && \
43 rm -rf libbpf
45 RUN git clone --depth 1 https://github.com/nghttp2/nghttp2.git && \
47 git submodule update --init && \
48 autoreconf -i && \
49 ./configure --disable-examples --disable-hpack-tools \
50 --with-mruby --with-neverbleed \
51 --enable-http3 --with-libbpf \
52 CC=clang CXX=clang++ \
53 LIBTOOL_LDFLAGS="-static-libtool-libs" \
54 OPENSSL_LIBS="-l:libssl.a -l:libcrypto.a -ldl -pthread" \
55 LIBEV_LIBS="-l:libev.a" \
56 JEMALLOC_LIBS="-l:libjemalloc.a" \
57 LIBCARES_LIBS="-l:libcares.a" \
58 ZLIB_LIBS="-l:libz.a" \
59 LIBBPF_LIBS="-L/usr/local/lib64 -l:libbpf.a -l:libelf.a" \
60 LDFLAGS="-static-libgcc -static-libstdc++" \
62 make -j$(nproc) install-strip && \
64 rm -rf nghttp2
66 FROM gcr.io/distroless/base-debian11
68 COPY --from=build \
71 COPY --from=build \
77 COPY --from=build /usr/local/lib/nghttp2/reuseport_kern.o \