blob: c426659905bd4a9483c5633f00ef21cc413ba983 [file] [log] [blame]
Maros Ondrejicka8851ccf2023-01-13 10:09:14 +01001ARG UBUNTU_VERSION
2
3FROM ubuntu:${UBUNTU_VERSION}
4
Dave Wallace67dbc4a2023-02-22 13:56:06 -05005RUN apt-get update \
Florin Coras87767d82023-03-06 09:46:11 -08006 && apt-get install -y nginx gdb less \
Dave Wallace67dbc4a2023-02-22 13:56:06 -05007 && rm -rf /var/lib/apt/lists/*
Filip Tehlarc204c872022-12-21 08:59:16 +01008
9COPY vpp-data/lib/* /usr/lib/
10COPY resources/nginx/vcl.conf /vcl.conf
11COPY resources/nginx/nginx.conf /nginx.conf
Florin Coras87767d82023-03-06 09:46:11 -080012COPY script/nginx_ldp.sh /usr/bin/nginx_ldp.sh
Filip Tehlarc204c872022-12-21 08:59:16 +010013
Maros Ondrejicka8851ccf2023-01-13 10:09:14 +010014ENV VCL_CONFIG=/vcl.conf
Florin Coras87767d82023-03-06 09:46:11 -080015ENV LDP=/usr/lib/libvcl_ldpreload.so
16ENV LDP_DEBUG=0
17ENV VCL_DEBUG=0
18ENV LDP_SID_BIT=8
Maros Ondrejicka8851ccf2023-01-13 10:09:14 +010019
Florin Coras87767d82023-03-06 09:46:11 -080020ENTRYPOINT ["nginx_ldp.sh", "-c", "/nginx.conf"]