Skip to content

Commit 453a9da

Browse files
committed
Preinstall more extensions which cannot be installed later
Extensions added: pcre, recode, sqlite3
1 parent 460bba6 commit 453a9da

File tree

9 files changed

+54
-9
lines changed

9 files changed

+54
-9
lines changed

5.4/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM debian:jessie
22

33
# persistent / runtime deps
4-
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
4+
RUN apt-get update && apt-get install -y ca-certificates curl libpcre3 librecode0 libsqlite3-0 libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
55

66
# phpize deps
77
RUN apt-get update && apt-get install -y autoconf file gcc libc-dev make pkg-config re2c --no-install-recommends && rm -r /var/lib/apt/lists/*
@@ -21,7 +21,10 @@ RUN buildDeps=" \
2121
$PHP_EXTRA_BUILD_DEPS \
2222
bzip2 \
2323
libcurl4-openssl-dev \
24+
libpcre3-dev \
2425
libreadline6-dev \
26+
librecode-dev \
27+
libsqlite3-dev \
2528
libssl-dev \
2629
libxml2-dev \
2730
" \
@@ -42,7 +45,9 @@ RUN buildDeps=" \
4245
--enable-mysqlnd \
4346
--with-curl \
4447
--with-openssl \
48+
--with-pcre \
4549
--with-readline \
50+
--with-recode \
4651
--with-zlib \
4752
&& make -j"$(nproc)" \
4853
&& make install \

5.4/apache/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM debian:jessie
22

33
# persistent / runtime deps
4-
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
4+
RUN apt-get update && apt-get install -y ca-certificates curl libpcre3 librecode0 libsqlite3-0 libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
55

66
# phpize deps
77
RUN apt-get update && apt-get install -y autoconf file gcc libc-dev make pkg-config re2c --no-install-recommends && rm -r /var/lib/apt/lists/*
@@ -34,7 +34,10 @@ RUN buildDeps=" \
3434
$PHP_EXTRA_BUILD_DEPS \
3535
bzip2 \
3636
libcurl4-openssl-dev \
37+
libpcre3-dev \
3738
libreadline6-dev \
39+
librecode-dev \
40+
libsqlite3-dev \
3841
libssl-dev \
3942
libxml2-dev \
4043
" \
@@ -55,7 +58,9 @@ RUN buildDeps=" \
5558
--enable-mysqlnd \
5659
--with-curl \
5760
--with-openssl \
61+
--with-pcre \
5862
--with-readline \
63+
--with-recode \
5964
--with-zlib \
6065
&& make -j"$(nproc)" \
6166
&& make install \

5.4/fpm/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM debian:jessie
22

33
# persistent / runtime deps
4-
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
4+
RUN apt-get update && apt-get install -y ca-certificates curl libpcre3 librecode0 libsqlite3-0 libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
55

66
# phpize deps
77
RUN apt-get update && apt-get install -y autoconf file gcc libc-dev make pkg-config re2c --no-install-recommends && rm -r /var/lib/apt/lists/*
@@ -22,7 +22,10 @@ RUN buildDeps=" \
2222
$PHP_EXTRA_BUILD_DEPS \
2323
bzip2 \
2424
libcurl4-openssl-dev \
25+
libpcre3-dev \
2526
libreadline6-dev \
27+
librecode-dev \
28+
libsqlite3-dev \
2629
libssl-dev \
2730
libxml2-dev \
2831
" \
@@ -43,7 +46,9 @@ RUN buildDeps=" \
4346
--enable-mysqlnd \
4447
--with-curl \
4548
--with-openssl \
49+
--with-pcre \
4650
--with-readline \
51+
--with-recode \
4752
--with-zlib \
4853
&& make -j"$(nproc)" \
4954
&& make install \

5.5/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM debian:jessie
22

33
# persistent / runtime deps
4-
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
4+
RUN apt-get update && apt-get install -y ca-certificates curl libpcre3 librecode0 libsqlite3-0 libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
55

66
# phpize deps
77
RUN apt-get update && apt-get install -y autoconf file gcc libc-dev make pkg-config re2c --no-install-recommends && rm -r /var/lib/apt/lists/*
@@ -21,7 +21,10 @@ RUN buildDeps=" \
2121
$PHP_EXTRA_BUILD_DEPS \
2222
bzip2 \
2323
libcurl4-openssl-dev \
24+
libpcre3-dev \
2425
libreadline6-dev \
26+
librecode-dev \
27+
libsqlite3-dev \
2528
libssl-dev \
2629
libxml2-dev \
2730
" \
@@ -42,7 +45,9 @@ RUN buildDeps=" \
4245
--enable-mysqlnd \
4346
--with-curl \
4447
--with-openssl \
48+
--with-pcre \
4549
--with-readline \
50+
--with-recode \
4651
--with-zlib \
4752
&& make -j"$(nproc)" \
4853
&& make install \

5.5/apache/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM debian:jessie
22

33
# persistent / runtime deps
4-
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
4+
RUN apt-get update && apt-get install -y ca-certificates curl libpcre3 librecode0 libsqlite3-0 libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
55

66
# phpize deps
77
RUN apt-get update && apt-get install -y autoconf file gcc libc-dev make pkg-config re2c --no-install-recommends && rm -r /var/lib/apt/lists/*
@@ -34,7 +34,10 @@ RUN buildDeps=" \
3434
$PHP_EXTRA_BUILD_DEPS \
3535
bzip2 \
3636
libcurl4-openssl-dev \
37+
libpcre3-dev \
3738
libreadline6-dev \
39+
librecode-dev \
40+
libsqlite3-dev \
3841
libssl-dev \
3942
libxml2-dev \
4043
" \
@@ -55,7 +58,9 @@ RUN buildDeps=" \
5558
--enable-mysqlnd \
5659
--with-curl \
5760
--with-openssl \
61+
--with-pcre \
5862
--with-readline \
63+
--with-recode \
5964
--with-zlib \
6065
&& make -j"$(nproc)" \
6166
&& make install \

5.5/fpm/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM debian:jessie
22

33
# persistent / runtime deps
4-
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
4+
RUN apt-get update && apt-get install -y ca-certificates curl libpcre3 librecode0 libsqlite3-0 libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
55

66
# phpize deps
77
RUN apt-get update && apt-get install -y autoconf file gcc libc-dev make pkg-config re2c --no-install-recommends && rm -r /var/lib/apt/lists/*
@@ -22,7 +22,10 @@ RUN buildDeps=" \
2222
$PHP_EXTRA_BUILD_DEPS \
2323
bzip2 \
2424
libcurl4-openssl-dev \
25+
libpcre3-dev \
2526
libreadline6-dev \
27+
librecode-dev \
28+
libsqlite3-dev \
2629
libssl-dev \
2730
libxml2-dev \
2831
" \
@@ -43,7 +46,9 @@ RUN buildDeps=" \
4346
--enable-mysqlnd \
4447
--with-curl \
4548
--with-openssl \
49+
--with-pcre \
4650
--with-readline \
51+
--with-recode \
4752
--with-zlib \
4853
&& make -j"$(nproc)" \
4954
&& make install \

5.6/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM debian:jessie
22

33
# persistent / runtime deps
4-
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
4+
RUN apt-get update && apt-get install -y ca-certificates curl libpcre3 librecode0 libsqlite3-0 libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
55

66
# phpize deps
77
RUN apt-get update && apt-get install -y autoconf file gcc libc-dev make pkg-config re2c --no-install-recommends && rm -r /var/lib/apt/lists/*
@@ -21,7 +21,10 @@ RUN buildDeps=" \
2121
$PHP_EXTRA_BUILD_DEPS \
2222
bzip2 \
2323
libcurl4-openssl-dev \
24+
libpcre3-dev \
2425
libreadline6-dev \
26+
librecode-dev \
27+
libsqlite3-dev \
2528
libssl-dev \
2629
libxml2-dev \
2730
" \
@@ -42,7 +45,9 @@ RUN buildDeps=" \
4245
--enable-mysqlnd \
4346
--with-curl \
4447
--with-openssl \
48+
--with-pcre \
4549
--with-readline \
50+
--with-recode \
4651
--with-zlib \
4752
&& make -j"$(nproc)" \
4853
&& make install \

5.6/apache/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM debian:jessie
22

33
# persistent / runtime deps
4-
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
4+
RUN apt-get update && apt-get install -y ca-certificates curl libpcre3 librecode0 libsqlite3-0 libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
55

66
# phpize deps
77
RUN apt-get update && apt-get install -y autoconf file gcc libc-dev make pkg-config re2c --no-install-recommends && rm -r /var/lib/apt/lists/*
@@ -34,7 +34,10 @@ RUN buildDeps=" \
3434
$PHP_EXTRA_BUILD_DEPS \
3535
bzip2 \
3636
libcurl4-openssl-dev \
37+
libpcre3-dev \
3738
libreadline6-dev \
39+
librecode-dev \
40+
libsqlite3-dev \
3841
libssl-dev \
3942
libxml2-dev \
4043
" \
@@ -55,7 +58,9 @@ RUN buildDeps=" \
5558
--enable-mysqlnd \
5659
--with-curl \
5760
--with-openssl \
61+
--with-pcre \
5862
--with-readline \
63+
--with-recode \
5964
--with-zlib \
6065
&& make -j"$(nproc)" \
6166
&& make install \

5.6/fpm/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM debian:jessie
22

33
# persistent / runtime deps
4-
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
4+
RUN apt-get update && apt-get install -y ca-certificates curl libpcre3 librecode0 libsqlite3-0 libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
55

66
# phpize deps
77
RUN apt-get update && apt-get install -y autoconf file gcc libc-dev make pkg-config re2c --no-install-recommends && rm -r /var/lib/apt/lists/*
@@ -22,7 +22,10 @@ RUN buildDeps=" \
2222
$PHP_EXTRA_BUILD_DEPS \
2323
bzip2 \
2424
libcurl4-openssl-dev \
25+
libpcre3-dev \
2526
libreadline6-dev \
27+
librecode-dev \
28+
libsqlite3-dev \
2629
libssl-dev \
2730
libxml2-dev \
2831
" \
@@ -43,7 +46,9 @@ RUN buildDeps=" \
4346
--enable-mysqlnd \
4447
--with-curl \
4548
--with-openssl \
49+
--with-pcre \
4650
--with-readline \
51+
--with-recode \
4752
--with-zlib \
4853
&& make -j"$(nproc)" \
4954
&& make install \

0 commit comments

Comments
 (0)