2017-12-07 04:19:02 +00:00
|
|
|
# NAME leenooks/php
|
2019-05-03 11:08:22 +00:00
|
|
|
# VERSION 7.3-fpm-plus
|
2017-12-07 04:19:02 +00:00
|
|
|
|
2019-05-03 11:08:22 +00:00
|
|
|
FROM registry.leenooks.net/leenooks/php:7.3-fpm-mp
|
2018-01-29 04:30:27 +00:00
|
|
|
|
2020-01-01 21:23:08 +00:00
|
|
|
RUN sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list \
|
|
|
|
&& cat /etc/apt/sources.list|grep ^deb | sed -E 's/^deb/deb-src/' >> /etc/apt/sources.list \
|
|
|
|
&& apt-get -y update \
|
|
|
|
&& apt-get -y install wget build-essential autoconf libtool git-core libwmf0.2-7 \
|
|
|
|
&& apt-get -y build-dep imagemagick libmagickcore-dev libde265 libheif \
|
|
|
|
&& cd /usr/src/ \
|
|
|
|
&& git clone https://github.com/strukturag/libde265.git \
|
|
|
|
&& git clone https://github.com/strukturag/libheif.git \
|
|
|
|
&& cd libde265/ \
|
|
|
|
&& ./autogen.sh \
|
|
|
|
&& ./configure \
|
|
|
|
&& make \
|
|
|
|
&& make install \
|
|
|
|
&& cd /usr/src/libheif/ \
|
|
|
|
&& ./autogen.sh \
|
|
|
|
&& ./configure \
|
|
|
|
&& make \
|
|
|
|
&& make install \
|
|
|
|
&& cd /usr/src/ \
|
|
|
|
&& wget https://www.imagemagick.org/download/ImageMagick.tar.gz \
|
|
|
|
&& tar xf ImageMagick.tar.gz \
|
|
|
|
&& cd ImageMagick-7* \
|
|
|
|
&& ./configure --with-heic=yes \
|
|
|
|
&& make \
|
|
|
|
&& make install \
|
|
|
|
&& ldconfig \
|
|
|
|
&& apt-get install -y libbz2-dev libgmp-dev libpng-dev libjpeg-dev libfreetype6-dev --no-install-recommends \
|
2017-12-07 04:19:02 +00:00
|
|
|
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/freetype2 --with-jpeg-dir=/usr/include/ \
|
2019-05-03 02:29:03 +00:00
|
|
|
&& docker-php-ext-install -j$(nproc) bz2 sockets gmp gd pcntl exif \
|
2017-12-28 11:51:46 +00:00
|
|
|
&& pecl install imagick && docker-php-ext-enable imagick \
|
2020-01-01 21:23:08 +00:00
|
|
|
&& apt-get purge -y build-essential autoconf libtool wget libbz2-dev libgmp-dev libpng-dev libjpeg-dev libfreetype6-dev libmagickcore-dev hicolor-icon-theme texlive-base texlive-binaries libx11-dev \
|
|
|
|
&& apt-get autoremove -y \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /usr/src/*
|