File tree 6 files changed +66
-60
lines changed
6 files changed +66
-60
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ FROM debian:jessie
3
3
# persistent / runtime deps
4
4
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
5
5
6
+ # phpize deps
7
+ RUN apt-get update && apt-get install -y autoconf pkg-config --no-install-recommends && rm -r /var/lib/apt/lists/*
8
+
9
+ ENV PHP_INI_DIR /usr/local/etc/php
10
+ RUN mkdir -p $PHP_INI_DIR/conf.d
11
+
6
12
# #<autogenerated>##
7
13
# #</autogenerated>##
8
14
@@ -16,12 +22,9 @@ RUN buildDeps=" \
16
22
bzip2 \
17
23
file \
18
24
libcurl4-openssl-dev \
19
- libpng12-dev \
20
25
libreadline6-dev \
21
26
libssl-dev \
22
27
libxml2-dev \
23
- m4 \
24
- pkg-config \
25
28
" ; \
26
29
set -x \
27
30
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
@@ -32,22 +35,20 @@ RUN buildDeps=" \
32
35
&& tar -xf php.tar.bz2 -C /usr/src/php --strip-components=1 \
33
36
&& rm php.tar.bz2* \
34
37
&& cd /usr/src/php \
35
- && ./configure --disable-cgi \
38
+ && ./configure \
39
+ --with-config-file-path="$PHP_INI_DIR" \
40
+ --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
36
41
$PHP_EXTRA_CONFIGURE_ARGS \
37
- --enable-soap \
42
+ --disable-cgi \
38
43
--with-curl \
39
- --with-gd \
40
- --with-mysql \
41
- --with-mysqli \
42
44
--with-openssl \
43
- --with-pdo-mysql \
44
45
--with-readline \
45
46
--with-zlib \
46
47
&& make -j"$(nproc)" \
47
48
&& make install \
48
49
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
49
50
&& apt-get purge -y --auto-remove $buildDeps \
50
- && rm -r /usr/src/php
51
+ && make clean
51
52
52
53
# #<autogenerated>##
53
54
CMD ["php" , "-a" ]
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ FROM debian:jessie
3
3
# persistent / runtime deps
4
4
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
5
5
6
+ # phpize deps
7
+ RUN apt-get update && apt-get install -y autoconf pkg-config --no-install-recommends && rm -r /var/lib/apt/lists/*
8
+
9
+ ENV PHP_INI_DIR /usr/local/etc/php
10
+ RUN mkdir -p $PHP_INI_DIR/conf.d
11
+
6
12
# #<autogenerated>##
7
13
RUN apt-get update && apt-get install -y apache2-bin apache2.2-common --no-install-recommends && rm -rf /var/lib/apt/lists/*
8
14
@@ -29,12 +35,9 @@ RUN buildDeps=" \
29
35
bzip2 \
30
36
file \
31
37
libcurl4-openssl-dev \
32
- libpng12-dev \
33
38
libreadline6-dev \
34
39
libssl-dev \
35
40
libxml2-dev \
36
- m4 \
37
- pkg-config \
38
41
" ; \
39
42
set -x \
40
43
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
@@ -45,22 +48,20 @@ RUN buildDeps=" \
45
48
&& tar -xf php.tar.bz2 -C /usr/src/php --strip-components=1 \
46
49
&& rm php.tar.bz2* \
47
50
&& cd /usr/src/php \
48
- && ./configure --disable-cgi \
51
+ && ./configure \
52
+ --with-config-file-path="$PHP_INI_DIR" \
53
+ --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
49
54
$PHP_EXTRA_CONFIGURE_ARGS \
50
- --enable-soap \
55
+ --disable-cgi \
51
56
--with-curl \
52
- --with-gd \
53
- --with-mysql \
54
- --with-mysqli \
55
57
--with-openssl \
56
- --with-pdo-mysql \
57
58
--with-readline \
58
59
--with-zlib \
59
60
&& make -j"$(nproc)" \
60
61
&& make install \
61
62
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
62
63
&& apt-get purge -y --auto-remove $buildDeps \
63
- && rm -r /usr/src/php
64
+ && make clean
64
65
65
66
# #<autogenerated>##
66
67
WORKDIR /var/www/html
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ FROM debian:jessie
3
3
# persistent / runtime deps
4
4
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
5
5
6
+ # phpize deps
7
+ RUN apt-get update && apt-get install -y autoconf pkg-config --no-install-recommends && rm -r /var/lib/apt/lists/*
8
+
9
+ ENV PHP_INI_DIR /usr/local/etc/php
10
+ RUN mkdir -p $PHP_INI_DIR/conf.d
11
+
6
12
# #<autogenerated>##
7
13
# #</autogenerated>##
8
14
@@ -16,12 +22,9 @@ RUN buildDeps=" \
16
22
bzip2 \
17
23
file \
18
24
libcurl4-openssl-dev \
19
- libpng12-dev \
20
25
libreadline6-dev \
21
26
libssl-dev \
22
27
libxml2-dev \
23
- m4 \
24
- pkg-config \
25
28
" ; \
26
29
set -x \
27
30
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
@@ -32,22 +35,20 @@ RUN buildDeps=" \
32
35
&& tar -xf php.tar.bz2 -C /usr/src/php --strip-components=1 \
33
36
&& rm php.tar.bz2* \
34
37
&& cd /usr/src/php \
35
- && ./configure --disable-cgi \
38
+ && ./configure \
39
+ --with-config-file-path="$PHP_INI_DIR" \
40
+ --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
36
41
$PHP_EXTRA_CONFIGURE_ARGS \
37
- --enable-soap \
42
+ --disable-cgi \
38
43
--with-curl \
39
- --with-gd \
40
- --with-mysql \
41
- --with-mysqli \
42
44
--with-openssl \
43
- --with-pdo-mysql \
44
45
--with-readline \
45
46
--with-zlib \
46
47
&& make -j"$(nproc)" \
47
48
&& make install \
48
49
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
49
50
&& apt-get purge -y --auto-remove $buildDeps \
50
- && rm -r /usr/src/php
51
+ && make clean
51
52
52
53
# #<autogenerated>##
53
54
CMD ["php" , "-a" ]
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ FROM debian:jessie
3
3
# persistent / runtime deps
4
4
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
5
5
6
+ # phpize deps
7
+ RUN apt-get update && apt-get install -y autoconf pkg-config --no-install-recommends && rm -r /var/lib/apt/lists/*
8
+
9
+ ENV PHP_INI_DIR /usr/local/etc/php
10
+ RUN mkdir -p $PHP_INI_DIR/conf.d
11
+
6
12
# #<autogenerated>##
7
13
RUN apt-get update && apt-get install -y apache2-bin apache2.2-common --no-install-recommends && rm -rf /var/lib/apt/lists/*
8
14
@@ -29,12 +35,9 @@ RUN buildDeps=" \
29
35
bzip2 \
30
36
file \
31
37
libcurl4-openssl-dev \
32
- libpng12-dev \
33
38
libreadline6-dev \
34
39
libssl-dev \
35
40
libxml2-dev \
36
- m4 \
37
- pkg-config \
38
41
" ; \
39
42
set -x \
40
43
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
@@ -45,22 +48,20 @@ RUN buildDeps=" \
45
48
&& tar -xf php.tar.bz2 -C /usr/src/php --strip-components=1 \
46
49
&& rm php.tar.bz2* \
47
50
&& cd /usr/src/php \
48
- && ./configure --disable-cgi \
51
+ && ./configure \
52
+ --with-config-file-path="$PHP_INI_DIR" \
53
+ --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
49
54
$PHP_EXTRA_CONFIGURE_ARGS \
50
- --enable-soap \
55
+ --disable-cgi \
51
56
--with-curl \
52
- --with-gd \
53
- --with-mysql \
54
- --with-mysqli \
55
57
--with-openssl \
56
- --with-pdo-mysql \
57
58
--with-readline \
58
59
--with-zlib \
59
60
&& make -j"$(nproc)" \
60
61
&& make install \
61
62
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
62
63
&& apt-get purge -y --auto-remove $buildDeps \
63
- && rm -r /usr/src/php
64
+ && make clean
64
65
65
66
# #<autogenerated>##
66
67
WORKDIR /var/www/html
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ FROM debian:jessie
3
3
# persistent / runtime deps
4
4
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
5
5
6
+ # phpize deps
7
+ RUN apt-get update && apt-get install -y autoconf pkg-config --no-install-recommends && rm -r /var/lib/apt/lists/*
8
+
9
+ ENV PHP_INI_DIR /usr/local/etc/php
10
+ RUN mkdir -p $PHP_INI_DIR/conf.d
11
+
6
12
# #<autogenerated>##
7
13
# #</autogenerated>##
8
14
@@ -16,12 +22,9 @@ RUN buildDeps=" \
16
22
bzip2 \
17
23
file \
18
24
libcurl4-openssl-dev \
19
- libpng12-dev \
20
25
libreadline6-dev \
21
26
libssl-dev \
22
27
libxml2-dev \
23
- m4 \
24
- pkg-config \
25
28
" ; \
26
29
set -x \
27
30
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
@@ -32,22 +35,20 @@ RUN buildDeps=" \
32
35
&& tar -xf php.tar.bz2 -C /usr/src/php --strip-components=1 \
33
36
&& rm php.tar.bz2* \
34
37
&& cd /usr/src/php \
35
- && ./configure --disable-cgi \
38
+ && ./configure \
39
+ --with-config-file-path="$PHP_INI_DIR" \
40
+ --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
36
41
$PHP_EXTRA_CONFIGURE_ARGS \
37
- --enable-soap \
42
+ --disable-cgi \
38
43
--with-curl \
39
- --with-gd \
40
- --with-mysql \
41
- --with-mysqli \
42
44
--with-openssl \
43
- --with-pdo-mysql \
44
45
--with-readline \
45
46
--with-zlib \
46
47
&& make -j"$(nproc)" \
47
48
&& make install \
48
49
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
49
50
&& apt-get purge -y --auto-remove $buildDeps \
50
- && rm -r /usr/src/php
51
+ && make clean
51
52
52
53
# #<autogenerated>##
53
54
CMD ["php" , "-a" ]
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ FROM debian:jessie
3
3
# persistent / runtime deps
4
4
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
5
5
6
+ # phpize deps
7
+ RUN apt-get update && apt-get install -y autoconf pkg-config --no-install-recommends && rm -r /var/lib/apt/lists/*
8
+
9
+ ENV PHP_INI_DIR /usr/local/etc/php
10
+ RUN mkdir -p $PHP_INI_DIR/conf.d
11
+
6
12
# #<autogenerated>##
7
13
RUN apt-get update && apt-get install -y apache2-bin apache2.2-common --no-install-recommends && rm -rf /var/lib/apt/lists/*
8
14
@@ -29,12 +35,9 @@ RUN buildDeps=" \
29
35
bzip2 \
30
36
file \
31
37
libcurl4-openssl-dev \
32
- libpng12-dev \
33
38
libreadline6-dev \
34
39
libssl-dev \
35
40
libxml2-dev \
36
- m4 \
37
- pkg-config \
38
41
" ; \
39
42
set -x \
40
43
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
@@ -45,22 +48,20 @@ RUN buildDeps=" \
45
48
&& tar -xf php.tar.bz2 -C /usr/src/php --strip-components=1 \
46
49
&& rm php.tar.bz2* \
47
50
&& cd /usr/src/php \
48
- && ./configure --disable-cgi \
51
+ && ./configure \
52
+ --with-config-file-path="$PHP_INI_DIR" \
53
+ --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
49
54
$PHP_EXTRA_CONFIGURE_ARGS \
50
- --enable-soap \
55
+ --disable-cgi \
51
56
--with-curl \
52
- --with-gd \
53
- --with-mysql \
54
- --with-mysqli \
55
57
--with-openssl \
56
- --with-pdo-mysql \
57
58
--with-readline \
58
59
--with-zlib \
59
60
&& make -j"$(nproc)" \
60
61
&& make install \
61
62
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
62
63
&& apt-get purge -y --auto-remove $buildDeps \
63
- && rm -r /usr/src/php
64
+ && make clean
64
65
65
66
# #<autogenerated>##
66
67
WORKDIR /var/www/html
You can’t perform that action at this time.
0 commit comments