-
-
Save saade/5997bcd12b3e8019cd4cdd36efde84da to your computer and use it in GitHub Desktop.
Vapor Dockerfile to install Ghostscript and Imagick while the PECL package is broken
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
FROM laravelphp/vapor:php83 | |
ARG IMAGICK_VERSION=3.7.0 | |
RUN apk --update add \ | |
ghostscript && \ | |
rm /var/cache/apk/* | |
RUN curl -L -o /tmp/imagick.tar.gz https://github.com/Imagick/imagick/archive/refs/tags/${IMAGICK_VERSION}.tar.gz \ | |
&& tar --strip-components=1 -xf /tmp/imagick.tar.gz \ | |
&& phpize \ | |
&& ./configure \ | |
&& make \ | |
&& make install \ | |
&& echo "extension=imagick.so" > /usr/local/etc/php/conf.d/ext-imagick.ini \ | |
&& rm -rf /tmp/* | |
COPY . /var/task |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment