summaryrefslogtreecommitdiffstats
path: root/extras/hs-test/docker/Dockerfile.nginx
blob: 930151fefef12e0341f546ab4b7deaf65835556f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ARG UBUNTU_VERSION

FROM ubuntu:${UBUNTU_VERSION}

RUN apt-get update
RUN apt-get install -y nginx
RUN 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"]