I got it to work by adding pkg-config libmagickwand-dev
to BUILD_PACKAGES and imagemagick
to DEPLOY_PACKAGES
.
root@3287313b105d85:/# convert --version
Version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
Copyright: (C) 1999-2021 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP(4.5)
Delegates (built-in): bzlib djvu fftw fontconfig freetype heic jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png tiff webp wmf x xml zlib
root@3287313b105d85:/# /app/bin/rails console
W, [2022-10-18T15:05:51.717539 #634] WARN -- : You are running SQLite in production, this is generally not recommended. You can disable this warning by setting "config.active_record.sqlite3_production_warning=false".
Loading production environment (Rails 7.0.4)
irb(main):001:0> require 'rmagick'
=> false
irb(main):002:0>