Skip to content

Commit 0e3021d

Browse files
committed
Update NGINX new-tag
1 parent 4f77f72 commit 0e3021d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

build/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,22 @@ RUN install -D -m 0644 /usr/local/lib/libluajit-5.1.so.2 /usr/lib/x86_64-linux-g
4848
&& printf "/usr/local/lib\n/usr/lib/x86_64-linux-gnu\n" > /etc/ld.so.conf.d/zz-nginx-luajit.conf \
4949
&& ldconfig
5050

51+
ARG RESTY_CORE_VER=0.1.28
52+
ARG RESTY_LRU_VER=0.13
53+
54+
ENV LUA_PATH="/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;./?.lua;;"
55+
ENV LUA_CPATH="/usr/local/lib/lua/5.1/?.so;./?.so;;"
56+
57+
RUN set -euo pipefail; \
58+
mkdir -p /usr/local/share/lua/5.1 /usr/local/lib/lua/5.1; \
59+
curl -fL -o /tmp/lua-resty-core.tar.gz https://github.com/openresty/lua-resty-core/archive/refs/tags/v${RESTY_CORE_VER}.tar.gz; \
60+
tar -xzf /tmp/lua-resty-core.tar.gz -C /tmp; \
61+
cp -R /tmp/lua-resty-core-*/lib/resty /usr/local/share/lua/5.1/; \
62+
curl -fL -o /tmp/lua-resty-lrucache.tar.gz https://github.com/openresty/lua-resty-lrucache/archive/refs/tags/v${RESTY_LRU_VER}.tar.gz; \
63+
tar -xzf /tmp/lua-resty-lrucache.tar.gz -C /tmp; \
64+
cp -R /tmp/lua-resty-lrucache-*/lib/resty /usr/local/share/lua/5.1/; \
65+
rm -rf /tmp/lua-resty-*
66+
5167
ADD https://github.com/airslate-ops/nginx-ingress-controller/releases/download/${VTS_VERSION}/ngx_http_vhost_traffic_status_module.so ${MODULES_DIR}/
5268
ADD https://github.com/airslate-ops/nginx-ingress-controller/releases/download/${OTEL_VERSION}/ngx_otel_module.so ${MODULES_DIR}/
5369
ADD https://github.com/airslate-ops/nginx-ingress-controller/releases/download/${BROTLI_VERSION}/ngx_http_brotli_filter_module.so ${MODULES_DIR}/

0 commit comments

Comments
 (0)