mvanholsteijn / strip-docker-image

Utility to strip Docker images to their bare minimum size.
Apache License 2.0
339 stars 42 forks source link

Add Alpine support #14

Closed agrrh closed 6 years ago

agrrh commented 6 years ago

I tested this with custom nodejs app and it works fine, but my code obviously needs to be improved.

There was infinite loop due to this, so I decided to hardcode skipping of ldd:

# readlink /usr/bin/ldd
/lib/ld-musl-x86_64.so.1

# /usr/bin/ldd /lib/ld-musl-x86_64.so.1 
    /usr/bin/ldd (0x7f1399ce5000)

Another issue is ability to list alpine package files. Not sure if it's enough to just check for executable.

Looking forward for your review.