From b189ac3e26a034e58f7d74523d8ed6c3f9059454 Mon Sep 17 00:00:00 2001 From: STAM Date: Mon, 31 Jul 2023 15:49:19 +0300 Subject: [PATCH] possible fix --- linux/ecosystem/nginx/latest/mainline/main/Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/linux/ecosystem/nginx/latest/mainline/main/Dockerfile b/linux/ecosystem/nginx/latest/mainline/main/Dockerfile index 48a71ce2b..c036e8608 100644 --- a/linux/ecosystem/nginx/latest/mainline/main/Dockerfile +++ b/linux/ecosystem/nginx/latest/mainline/main/Dockerfile @@ -174,7 +174,7 @@ RUN cd ${NGINX_SRC_DIR} && \ --add-dynamic-module=http-geoip2 \ --add-dynamic-module=spnego-http-auth-nginx-module \ --add-dynamic-module=http-auth-ldap \ - --add-dynamic-module=nginx-audio-track-for-hls-module \ +# --add-dynamic-module=nginx-audio-track-for-hls-module \ --add-dynamic-module=ip2location-nginx \ --add-dynamic-module=nginx-vod-module \ --add-dynamic-module=nginx-module-vts \ @@ -211,6 +211,7 @@ RUN echo "TLS_REQCERT never" >> /etc/ldap/ldap.conf # Installing nginx from deb ################################################################## ADD pre/ngninx.pre.tar.gz / +COPY pre/ngninx.pre.tar.gz /tmp/ngninx.pre.tar.gz COPY --from=builder /builds/export /tmp/deb RUN apt-get update && \ apt-get install -y --allow-unauthenticated \ @@ -221,6 +222,9 @@ RUN apt-get update && \ libgd3 \ libxslt1.1 && \ dpkg --force-all -i /tmp/deb/*.deb && \ + mkdir -p /opt/nginx/install && \ + cp /tmp/deb/*.deb /opt/nginx/install/ && \ + cp /tmp/ngninx.pre.tar.gz /opt/nginx/install/ && \ # ln -s /usr/local/lib/libIP2Location.so /usr/lib/libIP2Location.so && \ ln -s /usr/local/lib/libIP2Location.so.1 /usr/lib/libIP2Location.so.1 && \ ln -s /usr/local/lib/libIP2Location.so.2 /usr/lib/libIP2Location.so.2 && \ @@ -236,8 +240,11 @@ RUN apt-get update && \ rm -rf /var/lib/apt/lists/* && \ rm -rf /var/cache/apt/archives/*.deb && \ rm -rf /tmp/deb/* && \ + rm -rf /tmp/* && \ rm -rf /builds/* && \ - rm -rf /valve/* + rm -rf /valve/* && \ + rm -rf /builds && \ + rm -rf /valve #healthcheck. good practice HEALTHCHECK --interval=2m --timeout=3s CMD curl -f http://localhost:80/ || exit 1