This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This fixes the platform value for rubygems 3.x, allowing bundler and gem install | |
# to properly resolve to: a) linux on linux, and b) to linux-musl on linux-musl | |
# with a fallback to linux if there's no linux-musl gem published. | |
# | |
# This works when there is no extension to build that would try to query the | |
# current Ruby platform through Rubygems (because building an extension spawns an | |
# independent Ruby interpreter) | |
# | |
# The second file in this gist is a patch to apply to Rubygems 3.0.3.1, e.g for | |
# official Docker Hub images: |