File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -138,11 +138,12 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
138
138
&& apk add --no-cache --virtual .gettext gettext \
139
139
&& mv /usr/bin/envsubst /tmp/ \
140
140
\
141
- && runDeps="$( \
142
- scanelf --needed --nobanner --format '%n#p' /usr/sbin/nginx /usr/lib/nginx/modules/*.so /tmp/envsubst \
143
- | tr ',' '\n ' \
141
+ && runDeps="$( \
142
+ scanelf --needed --nobanner /usr/sbin/nginx /usr/lib/nginx/modules/*.so /tmp/envsubst \
143
+ | awk '{ gsub(/,/, " \n so:", $2); print " so:" $2 }' \
144
+ | sort -u \
145
+ | xargs -r apk info --installed \
144
146
| sort -u \
145
- | awk 'system(" [ -e /usr/local/lib/" $1 " ]") == 0 { next } { print " so:" $1 }' \
146
147
)" \
147
148
&& apk add --no-cache --virtual .nginx-rundeps $runDeps \
148
149
&& apk del .build-deps \
You can’t perform that action at this time.
0 commit comments