diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 1083c80..ff6fa99 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -26,4 +26,4 @@ jobs: context: . platforms: linux/amd64,linux/arm64 push: true - tags: kiweeteam/nginx-brotli:1.27.0,kiweeteam/nginx-brotli:latest + tags: kiweeteam/nginx-brotli:1.27.2,kiweeteam/nginx-brotli:latest diff --git a/Dockerfile b/Dockerfile index 3a35493..c140084 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,14 +5,14 @@ RUN apt update \ && apt install -y libpcre3 libpcre3-dev zlib1g zlib1g-dev openssl libssl-dev wget git gcc make libbrotli-dev WORKDIR /app -RUN wget https://nginx.org/download/nginx-1.27.0.tar.gz && tar -zxf nginx-1.27.0.tar.gz +RUN wget https://nginx.org/download/nginx-1.27.2.tar.gz && tar -zxf nginx-1.27.2.tar.gz RUN git clone --recurse-submodules -j8 https://github.com/google/ngx_brotli -RUN cd nginx-1.27.0 && ./configure --with-compat --add-dynamic-module=../ngx_brotli \ +RUN cd nginx-1.27.2 && ./configure --with-compat --add-dynamic-module=../ngx_brotli \ && make modules -FROM nginx:1.27.0 -COPY --from=builder /app/nginx-1.27.0/objs/ngx_http_brotli_static_module.so /etc/nginx/modules/ -COPY --from=builder /app/nginx-1.27.0/objs/ngx_http_brotli_filter_module.so /etc/nginx/modules/ +FROM nginx:1.27.2 +COPY --from=builder /app/nginx-1.27.2/objs/ngx_http_brotli_static_module.so /etc/nginx/modules/ +COPY --from=builder /app/nginx-1.27.2/objs/ngx_http_brotli_filter_module.so /etc/nginx/modules/ RUN echo "load_module modules/ngx_http_brotli_filter_module.so;\nload_module modules/ngx_http_brotli_static_module.so;\n$(cat /etc/nginx/nginx.conf)" > /etc/nginx/nginx.conf RUN echo 'brotli on;\n \ brotli_comp_level 6;\n \