Matus Fabian | 8792e5c | 2024-08-14 12:38:20 +0200 | [diff] [blame] | 1 | ARG UBUNTU_VERSION |
| 2 | |
| 3 | FROM ubuntu:${UBUNTU_VERSION} |
| 4 | |
| 5 | RUN 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 Tehlar | 31eaea9 | 2023-06-15 10:06:57 +0200 | [diff] [blame] | 8 | |
| 9 | COPY script/build_boringssl.sh /build_boringssl.sh |
| 10 | RUN git clone https://boringssl.googlesource.com/boringssl |
| 11 | RUN ./build_boringssl.sh |
| 12 | |
| 13 | COPY script/build_nginx.sh /build_nginx.sh |
| 14 | RUN git clone https://github.com/nginx/nginx |
| 15 | RUN ./build_nginx.sh |
| 16 | |
| 17 | COPY vpp-data/lib/* /usr/lib/ |
| 18 | COPY resources/nginx/vcl.conf /vcl.conf |
| 19 | COPY resources/nginx/nginx_http3.conf /nginx.conf |
| 20 | COPY script/nginx_ldp.sh /usr/bin/nginx_ldp.sh |
| 21 | |
| 22 | COPY resources/nginx/html/index.html /usr/share/nginx/index.html |
| 23 | |
| 24 | ENV VCL_CONFIG=/vcl.conf |
| 25 | ENV LDP=/usr/lib/libvcl_ldpreload.so |
| 26 | ENV LDP_DEBUG=0 |
| 27 | ENV VCL_DEBUG=0 |
| 28 | ENV LDP_SID_BIT=8 |
| 29 | |
| 30 | ENTRYPOINT ["nginx_ldp.sh", "/usr/local/nginx/sbin/nginx", "-c", "/nginx.conf"] |