Last active
December 7, 2023 12:20
-
-
Save ptflp/5cc7ff386ed3338bac4033ec13c339e9 to your computer and use it in GitHub Desktop.
docker php install imagemagick alpine 3.8
This file contains 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 php:7.0-fpm-alpine | |
RUN set -ex && \ | |
apk add --no-cache --virtual .build-deps \ | |
libxml2-dev \ | |
shadow \ | |
autoconf \ | |
g++ \ | |
make \ | |
&& apk add --no-cache imagemagick-dev imagemagick libjpeg-turbo libgomp freetype-dev \ | |
&& pecl install imagick \ | |
&& docker-php-ext-enable imagick \ | |
&& apk del .build-deps | |
CMD ["php-fpm"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
Dockerfile
contents should change into the following contents: