1- FROM alpine:3.15 AS build
1+ FROM alpine:3.16 AS build
22
3- ENV NGINX_VERSION 1.22 .0
3+ ENV NGINX_VERSION 1.23 .0
44# https://github.com/nginx/njs
5- ENV NJS_MODULE_VERSION 0.7.4
5+ ENV NJS_MODULE_VERSION 0.7.5
66# https://github.com/openresty/echo-nginx-module
77ENV ECHO_MODULE_VERSION v0.62
88# https://github.com/openresty/headers-more-nginx-module
9- ENV HEADERS_MODULE_VERSION v0.33
9+ ENV HEADERS_MODULE_VERSION master
1010# https://github.com/openresty/memc-nginx-module
1111ENV MEMC_MODULE_VERSION v0.19
1212# https://github.com/vision5/ngx_devel_kit
@@ -17,11 +17,14 @@ ENV POSTGRES_MODULE_VERSION master
1717ENV RDSJSON_MODULE_VERSION v0.15
1818# https://github.com/openresty/redis2-nginx-module
1919ENV REDIS2_MODULE_VERSION v0.15
20- ENV REDIS_MODULE_VERSION 0.3.9
20+ # https://github.com/osokin/ngx_http_redis
21+ ENV REDIS_MODULE_VERSION ngx-1.23
2122# https://github.com/openresty/set-misc-nginx-module
2223ENV SETMISC_MODULE_VERSION v0.33
24+ # https://github.com/levonet/nginx-sticky-module-ng
25+ ENV STICKY_MODULE_VERSION nginx-1.23.0
2326# https://github.com/openresty/srcache-nginx-module
24- ENV SRCACHE_MODULE_VERSION v0.32
27+ ENV SRCACHE_MODULE_VERSION master
2528# https://github.com/weibocom/nginx-upsync-module
2629ENV UPSYNC_MODULE_VERSION v2.1.3
2730# https://github.com/xiaokai-wang/nginx-stream-upsync-module
@@ -45,7 +48,9 @@ RUN set -eux \
4548 gcc \
4649 gettext \
4750 git \
48- gnupg1 \
51+ gnupg-dirmngr \
52+ gpg \
53+ gpg-agent \
4954 libc-dev \
5055 linux-headers \
5156 make \
@@ -141,7 +146,7 @@ RUN set -eux \
141146 && git clone --depth=1 --single-branch -b ${SETMISC_MODULE_VERSION} https://github.com/openresty/set-misc-nginx-module.git \
142147 \
143148 # Sticky
144- && git clone --depth=1 https://github.com/levonet/nginx-sticky-module-ng.git \
149+ && git clone --depth=1 --single-branch -b ${STICKY_MODULE_VERSION} https://github.com/levonet/nginx-sticky-module-ng.git \
145150 \
146151 # Upstream health check
147152 && git clone --depth=1 https://github.com/2Fast2BCn/nginx_upstream_check_module.git \
@@ -155,9 +160,7 @@ RUN set -eux \
155160 && (cd ngx_brotli; git submodule update --init) \
156161 \
157162 # Redis
158- && mkdir -p /usr/src/nginx-${NGINX_VERSION}/ngx_http_redis \
159- && curl -fSL https://people.freebsd.org/~osa/ngx_http_redis-${REDIS_MODULE_VERSION}.tar.gz -o ngx_http_redis.tar.gz \
160- && tar -zxC /usr/src/nginx-${NGINX_VERSION}/ngx_http_redis -f ngx_http_redis.tar.gz --strip 1 \
163+ && git clone --depth=1 --single-branch -b ${REDIS_MODULE_VERSION} https://github.com/zhuizhuhaomeng/ngx_http_redis.git \
161164 \
162165 # A forward proxy module for CONNECT request handling
163166 && git clone --depth=1 https://github.com/chobits/ngx_http_proxy_connect_module.git \
@@ -251,7 +254,7 @@ RUN set -eux \
251254 /usr/local/lib/libyaml-cpp.so* \
252255 /usr/local/lib/libjaegertracing.so*
253256
254- FROM alpine:3.15
257+ FROM alpine:3.16
255258
256259COPY --from=build /etc/nginx /etc/nginx
257260COPY --from=build /usr/sbin/nginx /usr/sbin/nginx
0 commit comments