forked from pimcore/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.template
executable file
·80 lines (71 loc) · 2.98 KB
/
Dockerfile.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
FROM php:%%PHP_TAG%%-%%IMAGE_VARIANT%%-%%DISTRIBUTION%%
LABEL maintainer="dominik@pfaffenbauer.at"
RUN set -eux; \
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 zopfli 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 python3-pip opencv-data facedetect webp graphviz cmake ninja-build unzip cron \
liblcms2-dev liblqr-1-0-dev libjpeg-turbo-progs libopenjp2-7-dev wkhtmltopdf libtiff-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 libjpeg62-turbo-dev \
libonig-dev; \
\
docker-php-ext-install intl mbstring mysqli bcmath bz2 soap 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; \
cd ..; \
rm -rf ImageMagick*; \
\
##<version>##
##</version>##
pecl install apcu; \
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 /tmp; \
\
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; \
\
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 ..; \
\
apt-get autoremove -y; \
apt-get remove -y autoconf automake libtool nasm make cmake ninja-build pkg-config libz-dev build-essential g++; \
apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* ~/.composer
RUN echo "upload_max_filesize = 100M" >> /usr/local/etc/php/conf.d/20-pimcore.ini; \
echo "memory_limit = 256M" >> /usr/local/etc/php/conf.d/20-pimcore.ini; \
echo "post_max_size = 100M" >> /usr/local/etc/php/conf.d/20-pimcore.ini
##<version>##
##</version>##
##<debug>##
##</debug>##
##<env>##
##</env>##
##<autogenerated>##
##</autogenerated>##
##<autogenerated>##
##</autogenerated>##