File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -58,16 +58,15 @@ ADD https://github.com/airslate-ops/nginx-ingress-controller/releases/download/$
5858RUN 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 #############################################
You can’t perform that action at this time.
0 commit comments