Skip to content

Commit

Permalink
Bump nginx from 1.25.5 to 1.27.0 (#12)
Browse files Browse the repository at this point in the history
* Bump nginx from 1.25.5 to 1.27.0

Bumps nginx from 1.25.5 to 1.27.0.

---
updated-dependencies:
- dependency-name: nginx
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump nginx from 1.25.5 to 1.27.0 Bumps nginx from 1.25.5 to 1.27.0.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tomasz Gajewski <[email protected]>
  • Loading branch information
dependabot[bot] and tom00 authored Jul 14, 2024
1 parent cd0489e commit 5afd541
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: kiweeteam/nginx-brotli:1.25.5,kiweeteam/nginx-brotli:latest
tags: kiweeteam/nginx-brotli:1.27.0,kiweeteam/nginx-brotli:latest
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.25.5.tar.gz && tar -zxf nginx-1.25.5.tar.gz
RUN wget https://nginx.org/download/nginx-1.27.0.tar.gz && tar -zxf nginx-1.27.0.tar.gz
RUN git clone --recurse-submodules -j8 https://github.com/google/ngx_brotli
RUN cd nginx-1.25.5 && ./configure --with-compat --add-dynamic-module=../ngx_brotli \
RUN cd nginx-1.27.0 && ./configure --with-compat --add-dynamic-module=../ngx_brotli \
&& make modules

FROM nginx:1.25.5
COPY --from=builder /app/nginx-1.25.5/objs/ngx_http_brotli_static_module.so /etc/nginx/modules/
COPY --from=builder /app/nginx-1.25.5/objs/ngx_http_brotli_filter_module.so /etc/nginx/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/
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 \
Expand Down

0 comments on commit 5afd541

Please sign in to comment.