blob: 56c6220b5ece8186d59642ab147ddf59341f6845 [file] [log] [blame]
ARG UBUNTU_VERSION
FROM ubuntu:${UBUNTU_VERSION}
RUN apt-get update \
&& apt-get install -y nginx \
&& rm -rf /var/lib/apt/lists/*
COPY vpp-data/lib/* /usr/lib/
COPY resources/nginx/vcl.conf /vcl.conf
COPY resources/nginx/nginx.conf /nginx.conf
ENV VCL_CONFIG=/vcl.conf
ENV LD_PRELOAD=/usr/lib/libvcl_ldpreload.so
ENTRYPOINT ["nginx", "-c", "/nginx.conf"]