Last active
December 24, 2019 10:08
-
-
Save matchilling/90b52a957cbd79e31807facf57b7893e to your computer and use it in GitHub Desktop.
Install ImageMagick on Docker CentOS
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 centos:centos7 | |
MAINTAINER Mathias Schilling <m@matchilling.com> | |
ENV IMAGEMAGICK_VERSION="7.0.9-10" | |
ENV IMAGEMAGICK_LIB_RPM_URL="https://imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-libs-${IMAGEMAGICK_VERSION}.x86_64.rpm" | |
ENV IMAGEMAGICK_RPM_URL="https://imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-${IMAGEMAGICK_VERSION}.x86_64.rpm" | |
RUN export HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" $IMAGEMAGICK_RPM_URL) | |
RUN if [ $HTTP_CODE != "200" ] ; then echo "$IMAGEMAGICK_RPM_URL does not exist" && exit 1 ; fi | |
RUN curl -s -S "https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libraqm-0.7.0-1.el7.x86_64.rpm" -o libraqm.rpm && \ | |
curl -s -S $IMAGEMAGICK_LIB_RPM_URL -o imagemagick-lib.rpm && \ | |
curl -s -S $IMAGEMAGICK_RPM_URL -o imagemagick.rpm | |
RUN yum -y update && \ | |
yum localinstall -y libraqm.rpm imagemagick*.rpm && \ | |
rm -f imagemagick*.rpm && \ | |
yum clean all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment