The idea is to copy image magick binaries from this, if you need them:
# copy image magick
COPY --from=ghcr.io/npo-poms/linux-im7:7 /usr/local/bin/* /usr/local/bin/
COPY --from=ghcr.io/npo-poms/linux-im7:7 /usr/local/lib/* /usr/local/lib/
RUN apt-get update && \
apt-get upgrade && \
apt-get -y install postgresql-client \
libde265-0 libjpeg62-turbo x265 libx265-dev libtool libjpeg62-turbo libwebp6 libgomp1 libwebpmux3 libwebpdemux2 ghostscript libxml2-dev libxml2-utils && \
ldconfig /usr/local/lib
This is used in images based on ghcr.io/vpro/tomcat