File tree 3 files changed +9
-15
lines changed
3 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,10 @@ RUN set -ex \
16
16
--with-png-dir=/usr/include/ \
17
17
&& docker-php-ext-install -j "$(nproc)" gd mbstring pdo pdo_mysql pdo_pgsql zip \
18
18
&& runDeps="$( \
19
- scanelf --needed --nobanner --recursive \
20
- /usr/local/lib/php/extensions \
21
- | awk '{ gsub(/,/, " \n so:", $2); print " so:" $2 }' \
22
- | sort -u \
23
- | xargs -r apk info --installed \
19
+ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \
20
+ | tr ',' '\n ' \
24
21
| sort -u \
22
+ | awk 'system(" [ -e /usr/local/lib/" $1 " ]") == 0 { next } { print " so:" $1 }' \
25
23
)" \
26
24
&& apk add --virtual .drupal-phpexts-rundeps $runDeps \
27
25
&& apk del .build-deps
Original file line number Diff line number Diff line change @@ -16,12 +16,10 @@ RUN set -ex \
16
16
--with-png-dir=/usr/include/ \
17
17
&& docker-php-ext-install -j "$(nproc)" gd mbstring opcache pdo pdo_mysql pdo_pgsql zip \
18
18
&& runDeps="$( \
19
- scanelf --needed --nobanner --recursive \
20
- /usr/local/lib/php/extensions \
21
- | awk '{ gsub(/,/, " \n so:", $2); print " so:" $2 }' \
22
- | sort -u \
23
- | xargs -r apk info --installed \
19
+ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \
20
+ | tr ',' '\n ' \
24
21
| sort -u \
22
+ | awk 'system(" [ -e /usr/local/lib/" $1 " ]") == 0 { next } { print " so:" $1 }' \
25
23
)" \
26
24
&& apk add --virtual .drupal-phpexts-rundeps $runDeps \
27
25
&& apk del .build-deps
Original file line number Diff line number Diff line change @@ -16,12 +16,10 @@ RUN set -ex \
16
16
--with-png-dir=/usr/include/ \
17
17
&& docker-php-ext-install -j "$(nproc)" gd mbstring opcache pdo pdo_mysql pdo_pgsql zip \
18
18
&& runDeps="$( \
19
- scanelf --needed --nobanner --recursive \
20
- /usr/local/lib/php/extensions \
21
- | awk '{ gsub(/,/, " \n so:", $2); print " so:" $2 }' \
22
- | sort -u \
23
- | xargs -r apk info --installed \
19
+ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \
20
+ | tr ',' '\n ' \
24
21
| sort -u \
22
+ | awk 'system(" [ -e /usr/local/lib/" $1 " ]") == 0 { next } { print " so:" $1 }' \
25
23
)" \
26
24
&& apk add --virtual .drupal-phpexts-rundeps $runDeps \
27
25
&& apk del .build-deps
You can’t perform that action at this time.
0 commit comments