@@ -9,6 +9,20 @@ FROM devilbox/php-fpm:5.3-base as builder
99RUN set -eux \
1010 && DEBIAN_FRONTEND=noninteractive apt-get update \
1111 && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends --no-install-suggests \
12+ libenchant-dev \
13+ libevent-dev \
14+ libfreetype6-dev \
15+ libjpeg-dev \
16+ libmemcached-dev \
17+ libmysqlclient-dev \
18+ libpng-dev \
19+ libpq-dev \
20+ libsasl2-dev \
21+ libssl-dev \
22+ libvpx-dev \
23+ libwebp-dev \
24+ libxpm-dev \
25+ zlib1g-dev \
1226# Build tools
1327 autoconf \
1428 bison \
@@ -48,6 +62,136 @@ RUN set -eux \
4862 echo "ffi.enable = 1" >> /usr/local/etc/php/conf.d/docker-php-ext-ffi.ini; \
4963 fi
5064
65+ # -------------------- Installing PHP Extension: bcmath --------------------
66+ RUN set -eux \
67+ # Installation: Generic
68+ # Type: Built-in extension
69+ && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) bcmath \
70+ && true
71+
72+
73+ # -------------------- Installing PHP Extension: enchant --------------------
74+ RUN set -eux \
75+ # Installation: Generic
76+ # Type: Built-in extension
77+ && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) enchant \
78+ && true
79+
80+
81+ # -------------------- Installing PHP Extension: exif --------------------
82+ RUN set -eux \
83+ # Installation: Generic
84+ # Type: Built-in extension
85+ && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) exif \
86+ && true
87+
88+
89+ # -------------------- Installing PHP Extension: gd --------------------
90+ RUN set -eux \
91+ # Version specific pre-command
92+ && ln -s /usr/lib/$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)/libjpeg.* /usr/lib/ && \
93+ ln -s /usr/lib/$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)/libpng.* /usr/lib/ && \
94+ ln -s /usr/lib/$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)/libXpm.* /usr/lib/ && \
95+ mkdir /usr/include/freetype2/freetype && \
96+ ln -s /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h \
97+ \
98+ # Installation: Version specific
99+ # Type: Built-in extension
100+ # Custom: configure command
101+ && docker-php-ext-configure gd --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-native-ttf \
102+ # Installation
103+ && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) gd \
104+ && true
105+
106+
107+ # -------------------- Installing PHP Extension: igbinary --------------------
108+ RUN set -eux \
109+ # Installation: Version specific
110+ # Type: PECL extension
111+ # Default: Pecl command
112+ && pecl install igbinary-2.0.8 \
113+ # Enabling
114+ && docker-php-ext-enable igbinary \
115+ && true
116+
117+
118+ # -------------------- Installing PHP Extension: msgpack --------------------
119+ RUN set -eux \
120+ # Installation: Version specific
121+ # Type: PECL extension
122+ # Default: Pecl command
123+ && pecl install msgpack-0.5.7 \
124+ # Enabling
125+ && docker-php-ext-enable msgpack \
126+ && true
127+
128+
129+ # -------------------- Installing PHP Extension: memcached --------------------
130+ RUN set -eux \
131+ # Installation: Version specific
132+ # Type: PECL extension
133+ # Default: Pecl command
134+ && pecl install memcached-2.2.0 \
135+ # Enabling
136+ && docker-php-ext-enable memcached \
137+ && true
138+
139+
140+ # -------------------- Installing PHP Extension: mongodb --------------------
141+ RUN set -eux \
142+ # Installation: Version specific
143+ # Type: PECL extension
144+ # Default: Pecl command
145+ && pecl install mongodb-0.6.3 \
146+ # Enabling
147+ && docker-php-ext-enable mongodb \
148+ && true
149+
150+
151+ # -------------------- Installing PHP Extension: mysqli --------------------
152+ RUN set -eux \
153+ # Installation: Version specific
154+ # Type: Built-in extension
155+ # Installation
156+ && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) mysqli \
157+ && true
158+
159+
160+ # -------------------- Installing PHP Extension: pgsql --------------------
161+ RUN set -eux \
162+ # Installation: Generic
163+ # Type: Built-in extension
164+ && docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pgsql \
165+ && true
166+
167+
168+ # -------------------- Installing PHP Extension: apcu --------------------
169+ RUN set -eux \
170+ # Installation: Version specific
171+ # Type: PECL extension
172+ # Default: Pecl command
173+ && pecl install apcu-4.0.11 \
174+ # Enabling
175+ && docker-php-ext-enable apcu \
176+ && true
177+
178+
179+ # -------------------- Installing PHP Extension: redis --------------------
180+ RUN set -eux \
181+ # Generic pre-command
182+ && if [ -f /usr/include/liblzf/lzf.h ]; then \
183+ ln -s /usr/include/liblzf/lzf.h /usr/include/; \
184+ fi \
185+ \
186+ # Installation: Version specific
187+ # Type: PECL extension
188+ # Default: Pecl command
189+ && pecl install redis-4.3.0 \
190+ # Enabling
191+ && docker-php-ext-enable redis \
192+ && true
193+
194+
51195
52196
53197# Fix php.ini settings for enabled extensions
@@ -95,6 +239,17 @@ LABEL "org.opencontainers.image.description"="PHP-FPM 5.3-mods"
95239RUN set -eux \
96240 && DEBIAN_FRONTEND=noninteractive apt-get update \
97241 && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends --no-install-suggests \
242+ libenchant1c2a \
243+ libevent-2.0-5 \
244+ libfreetype6 \
245+ libjpeg62-turbo \
246+ libmemcachedutil2 \
247+ libmysqlclient18 \
248+ libpng12-0 \
249+ libpq5 \
250+ libvpx1 \
251+ libwebp5 \
252+ libxpm4 \
98253 ca-certificates \
99254 && rm -rf /var/lib/apt/lists/* \
100255 \
@@ -134,8 +289,32 @@ RUN set -eux \
134289 && if [ -n "${PHP_FPM_ERROR}" ]; then echo "${PHP_FPM_ERROR}" ; false; fi \
135290 && rm -f /usr/local/etc/php/php.ini \
136291 \
137- && php -m | grep -oiE '^hash$' \
138- && php-fpm -m | grep -oiE '^hash$' \
292+ && php -m | grep -oiE '^bcmath$' \
293+ && php-fpm -m | grep -oiE '^bcmath$' \
294+ && php -m | grep -oiE '^enchant$' \
295+ && php-fpm -m | grep -oiE '^enchant$' \
296+ && php -m | grep -oiE '^mbstring$' \
297+ && php-fpm -m | grep -oiE '^mbstring$' \
298+ && php -m | grep -oiE '^exif$' \
299+ && php-fpm -m | grep -oiE '^exif$' \
300+ && php -m | grep -oiE '^gd$' \
301+ && php-fpm -m | grep -oiE '^gd$' \
302+ && php -m | grep -oiE '^igbinary$' \
303+ && php-fpm -m | grep -oiE '^igbinary$' \
304+ && php -m | grep -oiE '^msgpack$' \
305+ && php-fpm -m | grep -oiE '^msgpack$' \
306+ && php -m | grep -oiE '^memcached$' \
307+ && php-fpm -m | grep -oiE '^memcached$' \
308+ && php -m | grep -oiE '^mongodb$' \
309+ && php-fpm -m | grep -oiE '^mongodb$' \
310+ && php -m | grep -oiE '^mysqli$' \
311+ && php-fpm -m | grep -oiE '^mysqli$' \
312+ && php -m | grep -oiE '^pgsql$' \
313+ && php-fpm -m | grep -oiE '^pgsql$' \
314+ && php -m | grep -oiE '^apcu$' \
315+ && php-fpm -m | grep -oiE '^apcu$' \
316+ && php -m | grep -oiE '^redis$' \
317+ && php-fpm -m | grep -oiE '^redis$' \
139318 && true
140319
141320
0 commit comments