All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
14 lines
797 B
Docker
14 lines
797 B
Docker
FROM nginx
|
|
|
|
ADD nginx-dav-ext-module /modules/nginx-dav-ext-module
|
|
ADD nginx-get-options /usr/local/bin
|
|
RUN echo 'deb-src [trusted=yes] https://nginx.org/packages/mainline/debian/ bookworm nginx' > /etc/apt/sources.list.d/nginx.list
|
|
RUN DEV_PACKAGES="build-essential dpkg-dev libpcre2-dev libssl-dev zlib1g-dev libxslt1-dev" && \
|
|
cd modules && apt update && apt install -y $DEV_PACKAGES && apt source nginx && cd nginx-${NGINX_VERSION} && \
|
|
./configure $(nginx-get-options) --add-dynamic-module=../nginx-dav-ext-module && make && cp objs/*.so /etc/nginx/modules && \
|
|
rm /etc/apt/sources.list.d/nginx.list && apt remove -y $DEV_PACKAGES && apt -y autoremove && cd / && rm -rf modules
|
|
|
|
ENV VOUCH_INTERNAL=vouch:9090
|
|
ADD nginx.conf.template /
|
|
ADD docker-entrypoint.d /docker-entrypoint.d
|