blob: 8b2f8406d38ff7709c9d2d6846e80bd0a387702e [file] [log] [blame]
Matus Fabian8792e5c2024-08-14 12:38:20 +02001ARG UBUNTU_VERSION
2
3FROM ubuntu:${UBUNTU_VERSION}
4
5RUN apt-get update \
6 && apt-get install -y gcc git make autoconf libtool pkg-config cmake ninja-build golang \
7 && rm -rf /var/lib/apt/lists/*
Filip Tehlar31eaea92023-06-15 10:06:57 +02008
9COPY script/build_boringssl.sh /build_boringssl.sh
10RUN git clone https://boringssl.googlesource.com/boringssl
11RUN ./build_boringssl.sh
12
13COPY script/build_nginx.sh /build_nginx.sh
14RUN git clone https://github.com/nginx/nginx
15RUN ./build_nginx.sh
16
17COPY vpp-data/lib/* /usr/lib/
18COPY resources/nginx/vcl.conf /vcl.conf
19COPY resources/nginx/nginx_http3.conf /nginx.conf
20COPY script/nginx_ldp.sh /usr/bin/nginx_ldp.sh
21
22COPY resources/nginx/html/index.html /usr/share/nginx/index.html
23
24ENV VCL_CONFIG=/vcl.conf
25ENV LDP=/usr/lib/libvcl_ldpreload.so
26ENV LDP_DEBUG=0
27ENV VCL_DEBUG=0
28ENV LDP_SID_BIT=8
29
30ENTRYPOINT ["nginx_ldp.sh", "/usr/local/nginx/sbin/nginx", "-c", "/nginx.conf"]