Skip to content

Commit 04c926b

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

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

build/Dockerfile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,17 @@ 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 -ceu '\
62-
cat > /tmp/min.conf <<EOF\n\
63-
load_module /usr/lib/nginx/modules/ndk_http_module.so;\n\
64-
load_module /usr/lib/nginx/modules/ngx_http_lua_module.so;\n\
65-
events {}\n\
66-
http {}\n\
67-
EOF\n\
68-
nginx -t -c /tmp/min.conf \
61+
RUN /bin/sh -euc ' \
62+
set -x; \
63+
ls -l /usr/sbin/nginx || true; \
64+
/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
71+
/usr/sbin/nginx -t -c /tmp/min.conf \
6972
'
7073
############################################# NGINX files #############################################
7174
FROM scratch AS nginx-files

0 commit comments

Comments
 (0)