-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
statically link the musl binary #3
Comments
See this comment on my PR trying to push a statically linked, Also, haven't tried statically linking the |
i'm not sure static linking with glibc is a good idea - musl was designed with static linking in mind, I looked into it and perhaps the problem was related to this: http://sourceware.org/glibc/wiki/FAQ#Even_statically_linked_programs_need_some_shared_libraries_which_is_not_acceptable_for_me.__What_can_I_do.3F |
I'll consider statically building NGINX in the |
After considering whether or not to use static compilation with the The difference in image size is negligible ( This is the commit with those changes. I've retagged |
Static linking could improve the packaging further by size and attack surface a tiny bit more.
ldd nginx
shows that the nginx binary is statically linked now. It may even be possible to delete /lib with the statically linked version. Needs tested though.The text was updated successfully, but these errors were encountered: