Add nginx-dav-ext
All checks were successful
/ build-image (push) Successful in 2m33s

This commit is contained in:
Peter Cai 2024-04-01 20:39:33 -04:00
parent 4b4812868e
commit 23d5ffd72a

21
nginx-dav-ext/Dockerfile Normal file
View file

@ -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/