From 23d5ffd72a8ee7a9da44ca36dbde174a3b59548c Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Mon, 1 Apr 2024 20:39:33 -0400 Subject: [PATCH] Add nginx-dav-ext --- nginx-dav-ext/Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 nginx-dav-ext/Dockerfile diff --git a/nginx-dav-ext/Dockerfile b/nginx-dav-ext/Dockerfile new file mode 100644 index 0000000..59ea45e --- /dev/null +++ b/nginx-dav-ext/Dockerfile @@ -0,0 +1,21 @@ +ARG NGINX_VERSION=1.25.4 + +FROM docker.io/debian:bookworm AS builder + +ARG NGINX_VERSION + +RUN apt-get -y update && apt-get -y install git build-essential wget libxslt1-dev libpcre2-dev zlib1g-dev \ + && mkdir /src && cd /src \ + && wget -qO - https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz | tar zxfv - \ + && git clone https://github.com/arut/nginx-dav-ext-module.git + +RUN cd /src/nginx-${NGINX_VERSION} && ./configure --with-compat \ + --with-file-aio --with-threads \ + --add-dynamic-module=../nginx-dav-ext-module \ + && make modules + +FROM docker.io/nginx:${NGINX_VERSION}-bookworm + +ARG NGINX_VERSION + +COPY --from=builder /src/nginx-${NGINX_VERSION}/objs/ngx_http_dav_ext_module.so /usr/lib/nginx/modules/