Sign inSign up

s8n02/php-apache-dev-imagemagick

By s8n02

Updated about 6 years ago

Image
0

1.7K

s8n02/php-apache-dev-imagemagick repository overview

FROM webdevops/php-apache-dev:7.4
USER root

RUN apt update

RUN apt-get --yes install librsvg2-dev \
	libxml2-dev \
	libltdl-dev \
	libfftw3-dev \
	libdjvulibre-dev \
	libzstd-dev \
	libsnappy-dev \
	libxslt1-dev \
	bzip2 \
	libbz2-dev \
	libfreetype6-dev \
	libjpeg-dev \
	libjpeg62-turbo-dev \
	libpng-dev \
	libtiff-dev \
	libperl-dev \
	libwebp-dev \
	libexif-dev \
	libltdl-dev \
	liblzma-dev \
    ghostscript \
	libgs-dev \
    libgoogle-perftools-dev \
    libraw-dev \
    libjxr-dev \
	curl \
	g++ \
	gcc \
	make \
	tar \
	autoconf \
	re2c \
	ca-certificates \
    potrace



# Autotrace
RUN apt install --yes autotools-dev autopoint diffutils libtool autogen intltool libpstoedit-dev intltool libglib2.0-dev libmagic-dev
# RUN apt-cache search pstoedit
RUN curl -sfLO https://codeload.github.com/autotrace/autotrace/tar.gz/travis-20190624.59 && \
    tar -xzf travis-20190624.59 && \
    cd autotrace-travis-20190624.59 && \
    ./autogen.sh && \
    ./configure && \
    make && \
    make install && \
    cd .. && \
    rm -R autotrace* 
RUN apt remove --purge --auto-remove --yes libmagic* imagemagick*

# variable
ENV IMAGEMAGICK=7.0.9-20
ENV IMAGICK=3.4.4
# ENV IMAGEMAGICK=6.9.10-90
# ENV IMAGICK=6.9.9-37

# Image Magick
RUN curl -sfLO https://www.imagemagick.org/download/ImageMagick-$IMAGEMAGICK.tar.gz && \
    tar -xzf ImageMagick-$IMAGEMAGICK.tar.gz && \
    cd ImageMagick-$IMAGEMAGICK && \
    ./configure \
    --with-tcmalloc \
    --prefix /usr/local \
    --enable-shared \
    --disable-static \
    --enable-openmp \
    # --with-modules \
    --with-gnu-ld=yes \
    --with-quantum-depth=8 \
    --enable-hdri=no \
    --with-bzlib=yes \
    --with-autotrace=no \
    --with-djvu=yes \
    --with-dps=yes \
    --with-fpx=yes \
    --with-fontconfig=yes \
    --with-freetype=yes \
    --with-gs-font-dir=default \
    --with-gslib=yes \
    --with-gvc=yes \
    --with-jbig=yes \
    --with-jpeg=yes \
    --with-openjp2=yes \
    --with-lcms=yes \
    --with-lqr=yes \
    --with-magick-plus-plus=yes \
    --with-openexr=yes \
    --with-perl=yes \
    --with-png=yes \
    --with-rsvg=yes \
    --with-tiff=yes \
    --with-wmf=yes \
    --with-x=yes \
    --with-lzma=yes \
    --with-xml=yes \
    --with-zlib=yes && \
    make install && \
    cd .. && \
    rm -rf  ImageMagick*

# IMagick
RUN curl -sfLO http://pecl.php.net/get/imagick-$IMAGICK.tgz && \
    tar -xzf imagick-$IMAGICK.tgz && \
    cd imagick-$IMAGICK && \
    phpize && \
    ./configure --with-imagick=/opt/local && \
    make && \
    make install && \
    cd .. && \
    rm -rf  imagick*

ENV LD_LIBRARY_PATH=/usr/local/lib
RUN ldconfig /user/local/lib
docker build --tag s8n02/php-apache-dev-imagemagick:7.4 .
docker push s8n02/php-apache-dev-imagemagick

Tag summary

Content type

Image

Digest

Size

380.6 MB

Last updated

over 6 years ago

docker pull s8n02/php-apache-dev-imagemagick