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
77ENV 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
2828ENV 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
3232ENV 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
248253COPY --from=build /etc/nginx /etc/nginx
249254COPY --from=build /usr/sbin/nginx /usr/sbin/nginx
0 commit comments