Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions 20/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,12 @@ RUN set -xe \
/usr/local/lib/erlang/lib/*/lib/lib*.a \
&& scanelf --nobanner -E ET_EXEC -BF '%F' --recursive /usr/local | xargs -r strip --strip-all \
&& scanelf --nobanner -E ET_DYN -BF '%F' --recursive /usr/local | xargs -r strip --strip-unneeded \
&& runDeps=$( \
scanelf --needed --nobanner --recursive /usr/local \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
&& runDeps="$( \
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \
| tr ',' '\n' \
| sort -u \
| xargs -r apk info --installed \
| sort -u \
) \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)" \
&& apk add --virtual .erlang-rundeps $runDeps lksctp-tools \
&& apk del .fetch-deps .build-deps

Expand Down
11 changes: 5 additions & 6 deletions master/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@ RUN set -xe \
/usr/local/lib/erlang/lib/*/lib/lib*.a \
&& scanelf --nobanner -E ET_EXEC -BF '%F' --recursive /usr/local | xargs -r strip --strip-all \
&& scanelf --nobanner -E ET_DYN -BF '%F' --recursive /usr/local | xargs -r strip --strip-unneeded \
&& runDeps=$( \
scanelf --needed --nobanner --recursive /usr/local \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
&& runDeps="$( \
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \
| tr ',' '\n' \
| sort -u \
| xargs -r apk info --installed \
| sort -u \
) \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)" \
&& apk add --virtual .erlang-rundeps lksctp-tools $runDeps \
&& apk del .fetch-deps .build-deps

Expand Down