How can I avoid using a precompiled native gem? When optimizing the size of an Alpine image, the runtime libraries must be permanently added. If you really must, see earlier git history of this file , which includes a workaround. Building nokogiri using system libraries. Skip to content.
nest...