php/Dockerfile

57 lines
3.0 KiB
Docker
Raw Normal View History

2017-12-07 04:19:02 +00:00
# NAME leenooks/php
2020-08-04 06:32:44 +00:00
# VERSION 7.4-fpm-plus
2017-12-07 04:19:02 +00:00
2020-08-04 06:32:44 +00:00
FROM registry.leenooks.net/leenooks/php:7.4-fpm-mp
2020-01-22 13:10:38 +00:00
RUN mv /sbin/init /sbin/init.tmp \
&& sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list \
2020-01-01 21:23:08 +00:00
&& cat /etc/apt/sources.list|grep ^deb | sed -E 's/^deb/deb-src/' >> /etc/apt/sources.list \
&& apt-get -y update \
2020-01-22 13:10:38 +00:00
&& apt-get -y install wget build-essential libtool git-core libwmf0.2-7 \
libpangocairo-1.0-0 libxt6 libjbig0 liblcms2-2 libtiff5 liblqr-1-0 libdjvulibre21 libfftw3-double3 libx265-165 \
libwebpmux3 libwebpdemux2 libopenexr23 libilmbase23 libopenjp2-7 \
2020-01-01 21:23:08 +00:00
&& 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 \
2020-04-02 05:55:19 +00:00
&& mkdir /usr/src/ImageMagick && cd /usr/src/ImageMagick \
2020-01-01 21:23:08 +00:00
&& 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-22 13:10:38 +00:00
&& apt-get purge -y build-essential libtool wget libbz2-dev libgmp-dev libpng-dev libjpeg-dev libfreetype6-dev libmagickcore-dev \
hicolor-icon-theme texlive-base texlive-binaries libx11-dev automake autotools-dev bsdmainutils dbus-user-session dbus-user-session doxygen \
fonts-lmodern ghostscript graphviz fonts-dejavu-core gsfonts icu-devtools jdupes groff-base chrpath dbus dmsetup libavutil-dev libblkid-dev \
libde265-dev libdjvulibre-dev libexif-dev libfftw3-dev libheif-dev libilmbase-dev libjbig-dev libjpeg62-turbo-dev liblcms2-dev liblqr-1-0-dev \
libopenjp2-7-dev libperl-dev libtiff-dev libwebp-dev libx265-dev man-db zlib1g-dev python python3 xsltproc python2.7-minimal python3.7-minimal \
tex-common mime-support poppler-data preview-latex-style readline-common libgdk-pixbuf2.0-0 libgl1-mesa-dri libgtk-3-common libpaper1 libpulse0 \
libpython2.7-minimal libpython3.7-minimal libqt5core5a libqt5gui5 libsensors-config libvdpau1 shared-mime-info libglib2.0-data libxml2-utils ttf-bitstream-vera libgvc6 \
2020-01-01 21:23:08 +00:00
&& apt-get autoremove -y \
2020-04-02 05:55:19 +00:00
&& rm -rf /var/lib/apt/lists/* /tmp/* \
&& rm -rf /usr/src/libde265 /usr/src/libheif /usr/src/ImageMagick \
2020-01-22 13:10:38 +00:00
&& mv /sbin/init.tmp /sbin/init
2020-05-15 02:53:33 +00:00
RUN apt-get -y update \
&& apt-get -y install build-essential libzip4 libzip-dev zlib1g-dev \
&& docker-php-ext-install -j$(nproc) zip \
&& apt-get purge -y build-essential libzip-dev zlib1g-dev \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* /tmp/*