Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
116 lines (107 sloc) 4.3 KB
#
# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh"
#
# PLEASE DO NOT EDIT IT DIRECTLY.
#
FROM php:7.3-cli-stretch
LABEL maintainer="dominik@pfaffenbauer.at"
RUN apt-get update && apt-get install -y lsb-release \
&& echo "deb http://deb.debian.org/debian $(lsb_release -sc)-backports main" > /etc/apt/sources.list.d/backports.list \
&& apt-get update && apt-get install -y --no-install-recommends \
autoconf automake libtool nasm make pkg-config libz-dev build-essential openssl g++ \
zlib1g-dev libicu-dev libbz2-dev libpng-dev libc-client-dev \
libkrb5-dev libxml2-dev libxslt1.1 libxslt1-dev locales locales-all \
ffmpeg html2text ghostscript libreoffice pngcrush jpegoptim exiftool poppler-utils git wget \
libx11-dev libjpeg-dev python3-pip opencv-data webp graphviz cmake unzip cron \
liblcms2-dev liblqr-1-0-dev libpng-dev libopenjp2-7-dev libtiff-dev libfreetype6-dev \
libfontconfig1-dev libfftw3-dev libltdl-dev liblzma-dev libopenexr-dev \
libwmf-dev libdjvulibre-dev libpango1.0-dev libxext-dev libxt-dev librsvg2-dev libzip-dev \
libpng-dev libfreetype6-dev libjpeg-dev libxpm-dev libwebp-dev \
\
&& docker-php-ext-configure gd \
--with-freetype-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ \
--with-xpm-dir=/usr/include \
--with-webp-dir=/usr/include/ \
&& docker-php-ext-install intl mbstring mysqli bcmath gd bz2 soap xmlrpc xsl pdo pdo_mysql fileinfo exif zip opcache \
\
&& wget http://www.imagemagick.org/download/ImageMagick.tar.gz \
&& tar -xvf ImageMagick.tar.gz \
&& cd ImageMagick-7.* \
&& ./configure \
&& make \
&& make install \
&& ldconfig /usr/local/lib \
&& pecl install imagick \
&& pecl install apcu \
&& cd .. \
&& rm -rf ImageMagick* \
\
&& pecl install redis \
&& docker-php-ext-enable redis imagick apcu \
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
&& docker-php-ext-install imap \
&& docker-php-ext-enable imap \
\
&& cd ~ \
\
&& wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz \
&& tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz \
&& mv wkhtmltox/bin/wkhtmlto* /usr/bin/ \
&& rm -rf wkhtmltox \
\
&& git clone https://github.com/mozilla/mozjpeg.git \
&& cd mozjpeg \
&& cmake -G"Unix Makefiles" \
&& make \
&& make install \
&& ln -s /opt/mozjpeg/bin/cjpeg /usr/bin/cjpeg \
&& cd .. \
&& rm -rf mozjpeg \
\
&& git clone https://github.com/wavexx/facedetect \
&& pip3 install numpy opencv-python \
&& cd facedetect \
&& cp facedetect /usr/local/bin \
&& cd .. \
&& rm -rf facedetect \
\
&& git clone https://github.com/google/zopfli.git \
&& cd zopfli \
&& make \
&& cp zopfli /usr/bin/zopflipng \
&& cd .. \
&& rm -rf zopfli \
\
&& wget http://static.jonof.id.au/dl/kenutils/pngout-20150319-linux.tar.gz \
&& tar -xf pngout-20150319-linux.tar.gz \
&& rm pngout-20150319-linux.tar.gz \
&& cp pngout-20150319-linux/x86_64/pngout /bin/pngout \
&& cd .. \
&& rm -rf pngout-20150319-linux \
\
&& wget http://prdownloads.sourceforge.net/advancemame/advancecomp-1.17.tar.gz \
&& tar zxvf advancecomp-1.17.tar.gz \
&& cd advancecomp-1.17 \
&& ./configure \
&& make \
&& make install \
&& cd .. \
&& rm -rf advancecomp-1.17 \
\
&& apt-get autoremove -y \
&& apt-get remove -y autoconf automake libtool nasm make pkg-config libz-dev build-essential g++ \
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* ~/.composer
ENV COMPOSER_ALLOW_SUPERUSER 1
ENV COMPOSER_MEMORY_LIMIT -1
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
RUN set -eux; \
composer global require "hirak/prestissimo:^0.3" --prefer-dist --no-progress --no-suggest --classmap-authoritative; \
composer clear-cache
ENV PATH="${PATH}:/root/.composer/vendor/bin"
##<debug>##
##</debug>##
##<autogenerated>##
##</autogenerated>##
##<autogenerated>##
##</autogenerated>##
You can’t perform that action at this time.