forked from pimcore/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.template
More file actions
executable file
·117 lines (108 loc) · 4.15 KB
/
Dockerfile.template
File metadata and controls
executable file
·117 lines (108 loc) · 4.15 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
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 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 webp graphviz cmake ninja-build unzip cron \
liblcms2-dev liblqr-1-0-dev libopenjp2-7-dev 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 \
ufraw; \
\
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 ~; \
\
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://gitlab.com/wavexx/facedetect; \
pip3 install --upgrade pip setuptools wheel; \
pip3 install scikit-build; \
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; \
\
curl -sL https://deb.nodesource.com/setup_14.x | bash -; \
apt-get install -y nodejs; \
npm install -g sqip; \
\
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>##