Skip to content

Commit 495b541

Browse files
committed
Update NGINX new-tag
1 parent 04c926b commit 495b541

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

build/Dockerfile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,15 @@ ADD https://github.com/airslate-ops/nginx-ingress-controller/releases/download/$
5858
RUN find ${MODULES_DIR} -type f -name '*.so' -exec chmod 0644 {} \; \
5959
&& ldconfig
6060

61-
RUN /bin/sh -euc ' \
62-
set -x; \
63-
ls -l /usr/sbin/nginx || true; \
61+
RUN /bin/sh -euc '\
62+
ldconfig; \
6463
/usr/sbin/nginx -V; \
65-
cat >/tmp/min.conf <<EOF
66-
load_module /usr/lib/nginx/modules/ndk_http_module.so;
67-
load_module /usr/lib/nginx/modules/ngx_http_lua_module.so;
68-
events {}
69-
http {}
70-
EOF
64+
printf "%s\n" \
65+
"load_module /usr/lib/nginx/modules/ndk_http_module.so;" \
66+
"load_module /usr/lib/nginx/modules/ngx_http_lua_module.so;" \
67+
"events {}" \
68+
"http {}" \
69+
> /tmp/min.conf; \
7170
/usr/sbin/nginx -t -c /tmp/min.conf \
7271
'
7372
############################################# NGINX files #############################################

0 commit comments

Comments
 (0)