Skip to content

Commit

Permalink
dockerfile: update nginx 1.23 -> 1.25
Browse files Browse the repository at this point in the history
  • Loading branch information
phip1611 committed Oct 3, 2023
1 parent fa93123 commit eee4bbb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginx:1.23.1
FROM nginx:1.25.2

# to get nginx_more_headers
# DON't do this, because there are version mismatches
Expand All @@ -16,19 +16,19 @@ FROM nginx:1.23.1
# always update first; docker guidlines
RUN apt-get update && apt-get install -y git wget
# MUST MATCH WITH FIRST LINE/MAIN VERSION
RUN wget https://nginx.org/download/nginx-1.23.1.tar.gz
RUN tar zxvf nginx-1.23.1.tar.gz
RUN rm nginx-1.23.1.tar.gz
RUN wget https://nginx.org/download/nginx-1.25.2.tar.gz
RUN tar zxvf nginx-1.25.2.tar.gz
RUN rm nginx-1.25.2.tar.gz

RUN git clone https://github.com/google/ngx_brotli.git
WORKDIR ngx_brotli
RUN git submodule update --init
WORKDIR ..

RUN apt-get update && apt-get install -y build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev openssl libssl-dev libbrotli-dev
WORKDIR nginx-1.23.1
WORKDIR nginx-1.25.2
RUN ./configure --with-compat --add-dynamic-module=../ngx_brotli
RUN make modules -j 4
RUN make modules -j $(nproc)
# --
RUN mkdir -p /usr/share/nginx/modules
RUN cp objs/ngx_http_brotli_filter_module.so /usr/share/nginx/modules
Expand Down

0 comments on commit eee4bbb

Please sign in to comment.