You can do something like pull in the gem’s compile-time dependencies - something like the following:
hooks:
after_code:
- exec: apt-get update && apt-get install -y libmagickwand-dev
we aren’t blocking anything from being installed, we are just no longer including the static libs that the gem is dependent on in the base image.