Skip to content

Commit a844eaa

Browse files
authored
Bump nginx to v1.21.6 (#29)
1 parent 449617f commit a844eaa

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

Dockerfile

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM alpine:3.14 AS build
1+
FROM alpine:3.15 AS build
22

3-
ENV NGINX_VERSION 1.21.5
3+
ENV NGINX_VERSION 1.21.6
44
# https://github.com/nginx/njs
5-
ENV NJS_MODULE_VERSION 0.7.0
5+
ENV NJS_MODULE_VERSION 0.7.2
66
# https://github.com/openresty/echo-nginx-module
77
ENV ECHO_MODULE_VERSION v0.62
88
# https://github.com/openresty/headers-more-nginx-module
@@ -27,7 +27,7 @@ ENV UPSYNC_MODULE_VERSION v2.1.3
2727
# https://github.com/xiaokai-wang/nginx-stream-upsync-module
2828
ENV UPSYNC_STREAM_MODULE_VERSION v1.2.2
2929
# https://github.com/jaegertracing/jaeger-client-cpp
30-
ENV JAEGER_CLIENT_VERSION v0.8.0
30+
ENV JAEGER_CLIENT_VERSION v0.9.0
3131
# https://github.com/opentracing/opentracing-cpp
3232
ENV OPENTRACING_LIB_VERSION v1.6.0
3333
# https://github.com/opentracing-contrib/nginx-opentracing
@@ -168,9 +168,15 @@ RUN set -eux \
168168
\
169169
# njs scripting language
170170
&& git clone --depth=1 --single-branch -b ${NJS_MODULE_VERSION} https://github.com/nginx/njs.git \
171-
&& (cd njs; CFLAGS="-O2 -m64 -march=x86-64 -mfpmath=sse -msse4.2 -pipe -fPIC -fomit-frame-pointer" ./configure; make njs; make test) \
171+
&& (cd njs; \
172+
./configure \
173+
--cc-opt="-O2 -m64 -march=x86-64 -mfpmath=sse -msse4.2 -pipe -fPIC -fomit-frame-pointer"; \
174+
make; \
175+
make unit_test; \
176+
install -m755 build/njs /usr/bin/ \
177+
) \
172178
\
173-
&& CFLAGS="-pipe -m64 -Ofast -flto -mtune=generic -march=x86-64 -fPIE -fPIC -funroll-loops -fstack-protector-strong -mfpmath=sse -msse4.2 -ffast-math -fomit-frame-pointer -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2" \
179+
&& CFLAGS="-Ofast -m64 -mtune=generic -march=x86-64 -mfpmath=sse -msse4.2 -pipe -fPIE -fPIC -flto -funroll-loops -fstack-protector-strong -ffast-math -fomit-frame-pointer -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2" \
174180
./configure \
175181
--prefix=/etc/nginx \
176182
--sbin-path=/usr/sbin/nginx \
@@ -233,7 +239,6 @@ RUN set -eux \
233239
&& mkdir -p /usr/share/nginx/html/ \
234240
&& install -m644 html/index.html /usr/share/nginx/html/ \
235241
&& install -m644 html/50x.html /usr/share/nginx/html/ \
236-
&& install -m755 njs/build/njs /usr/bin/ \
237242
&& ln -s ../../usr/lib/nginx/modules /etc/nginx/modules \
238243
&& cp -p ${HUNTER_INSTALL_DIR}/lib/libyaml-cpp.so* /usr/local/lib/ \
239244
&& strip /usr/bin/njs \
@@ -243,7 +248,7 @@ RUN set -eux \
243248
/usr/local/lib/libyaml-cpp.so* \
244249
/usr/local/lib/libjaegertracing.so*
245250

246-
FROM alpine:3.14
251+
FROM alpine:3.15
247252

248253
COPY --from=build /etc/nginx /etc/nginx
249254
COPY --from=build /usr/sbin/nginx /usr/sbin/nginx

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Supported tags and respective `Dockerfile` links
22

33
- [`latest` (*Dockerfile*)](https://github.com/levonet/docker-nginx/blob/master/Dockerfile)
4-
- [`1.21.5-alpine`, `1.21-alpine` (*Dockerfile*)](https://github.com/levonet/docker-nginx/blob/v1.21.5/Dockerfile) Mainline version
4+
- [`1.21.6-alpine`, `1.21-alpine` (*Dockerfile*)](https://github.com/levonet/docker-nginx/blob/v1.21.6/Dockerfile) Mainline version
55
- [`1.20.1-alpine`, `1.20-alpine` (*Dockerfile*)](https://github.com/levonet/docker-nginx/blob/v1.20.1/Dockerfile) Stable version
66
- <details><summary>Older versions</summary>
77

0 commit comments

Comments
 (0)