summaryrefslogtreecommitdiffstats
path: root/extras/hs-test/Dockerfile.nginx
diff options
context:
space:
mode:
Diffstat (limited to 'extras/hs-test/Dockerfile.nginx')
-rw-r--r--extras/hs-test/Dockerfile.nginx14
1 files changed, 11 insertions, 3 deletions
diff --git a/extras/hs-test/Dockerfile.nginx b/extras/hs-test/Dockerfile.nginx
index ece73766f18..930151fefef 100644
--- a/extras/hs-test/Dockerfile.nginx
+++ b/extras/hs-test/Dockerfile.nginx
@@ -1,8 +1,16 @@
-FROM nginx:1.22.1
+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
-COPY resources/nginx/start.sh /start.sh
-ENTRYPOINT ["/start.sh"]
+ENV VCL_CONFIG=/vcl.conf
+ENV LD_PRELOAD=/usr/lib/libvcl_ldpreload.so
+
+ENTRYPOINT ["nginx", "-c", "/nginx.conf"]