requires PHP extension ext-imagick docker alpine code example
Example: docker php-fpm-apline add imagick
RUN apk add imagemagick
RUN apk add imagemagick-dev
RUN apk add --update --no-cache autoconf g++ imagemagick-dev libtool make pcre-dev \
&& pecl install imagick \
&& docker-php-ext-enable imagick \
&& apk del autoconf g++ libtool make pcre-dev