39 lines
1.6 KiB
Docker
39 lines
1.6 KiB
Docker
# NAME leenooks/php
|
|
# VERSION 7.3-fpm-plus
|
|
|
|
FROM registry.leenooks.net/leenooks/php:7.3-fpm-mp
|
|
|
|
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 \
|
|
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/freetype2 --with-jpeg-dir=/usr/include/ \
|
|
&& docker-php-ext-install -j$(nproc) bz2 sockets gmp gd pcntl exif \
|
|
&& pecl install imagick && docker-php-ext-enable imagick \
|
|
&& 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/*
|