File tree 21 files changed +35
-84
lines changed
21 files changed +35
-84
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,6 @@ language: bash
2
2
services : docker
3
3
4
4
env :
5
- - VARIANT=php7.1/apache
6
- - VARIANT=php7.1/fpm
7
- - VARIANT=php7.1/fpm-alpine
8
- - VARIANT=php7.1/cli
9
5
- VARIANT=php7.2/apache
10
6
- VARIANT=php7.2/fpm
11
7
- VARIANT=php7.2/fpm-alpine
14
10
- VARIANT=php7.3/fpm
15
11
- VARIANT=php7.3/fpm-alpine
16
12
- VARIANT=php7.3/cli
13
+ - VARIANT=php7.4/apache
14
+ - VARIANT=php7.4/fpm
15
+ - VARIANT=php7.4/fpm-alpine
16
+ - VARIANT=php7.4/cli
17
17
18
18
install :
19
19
- git clone https://github.com/docker-library/official-images.git ~/official-images
Original file line number Diff line number Diff line change @@ -21,11 +21,7 @@ RUN set -ex; \
21
21
libzip-dev \
22
22
; \
23
23
\
24
- docker-php-ext-configure gd \
25
- --with-freetype-dir=/usr \
26
- --with-jpeg-dir=/usr \
27
- --with-png-dir=/usr \
28
- ; \
24
+ docker-php-ext-configure gd --with-freetype --with-jpeg; \
29
25
docker-php-ext-install -j "$(nproc)" \
30
26
bcmath \
31
27
exif \
Original file line number Diff line number Diff line change @@ -12,11 +12,7 @@ RUN set -ex; \
12
12
libzip-dev \
13
13
; \
14
14
\
15
- docker-php-ext-configure gd \
16
- --with-freetype-dir=/usr \
17
- --with-jpeg-dir=/usr \
18
- --with-png-dir=/usr \
19
- ; \
15
+ docker-php-ext-configure gd --with-freetype --with-jpeg; \
20
16
docker-php-ext-install -j "$(nproc)" \
21
17
bcmath \
22
18
exif \
Original file line number Diff line number Diff line change @@ -23,11 +23,7 @@ RUN set -ex; \
23
23
libzip-dev \
24
24
; \
25
25
\
26
- docker-php-ext-configure gd \
27
- --with-freetype-dir=/usr \
28
- --with-jpeg-dir=/usr \
29
- --with-png-dir=/usr \
30
- ; \
26
+ docker-php-ext-configure gd --with-freetype --with-jpeg; \
31
27
docker-php-ext-install -j "$(nproc)" \
32
28
bcmath \
33
29
exif \
Original file line number Diff line number Diff line change @@ -22,11 +22,7 @@ RUN set -ex; \
22
22
libpng-dev \
23
23
; \
24
24
\
25
- docker-php-ext-configure gd \
26
- --with-freetype-dir=/usr \
27
- --with-jpeg-dir=/usr \
28
- --with-png-dir=/usr \
29
- ; \
25
+ docker-php-ext-configure gd --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr; \
30
26
docker-php-ext-install -j "$(nproc)" \
31
27
bcmath \
32
28
exif \
Original file line number Diff line number Diff line change @@ -11,11 +11,7 @@ RUN set -ex; \
11
11
libpng-dev \
12
12
; \
13
13
\
14
- docker-php-ext-configure gd \
15
- --with-freetype-dir=/usr \
16
- --with-jpeg-dir=/usr \
17
- --with-png-dir=/usr \
18
- ; \
14
+ docker-php-ext-configure gd --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr; \
19
15
docker-php-ext-install -j "$(nproc)" \
20
16
bcmath \
21
17
exif \
Original file line number Diff line number Diff line change @@ -20,11 +20,7 @@ RUN set -ex; \
20
20
libpng-dev \
21
21
; \
22
22
\
23
- docker-php-ext-configure gd \
24
- --with-freetype-dir=/usr \
25
- --with-jpeg-dir=/usr \
26
- --with-png-dir=/usr \
27
- ; \
23
+ docker-php-ext-configure gd --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr; \
28
24
docker-php-ext-install -j "$(nproc)" \
29
25
bcmath \
30
26
exif \
Original file line number Diff line number Diff line change @@ -22,11 +22,7 @@ RUN set -ex; \
22
22
libpng-dev \
23
23
; \
24
24
\
25
- docker-php-ext-configure gd \
26
- --with-freetype-dir=/usr \
27
- --with-jpeg-dir=/usr \
28
- --with-png-dir=/usr \
29
- ; \
25
+ docker-php-ext-configure gd --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr; \
30
26
docker-php-ext-install -j "$(nproc)" \
31
27
bcmath \
32
28
exif \
Original file line number Diff line number Diff line change @@ -23,11 +23,7 @@ RUN set -ex; \
23
23
libzip-dev \
24
24
; \
25
25
\
26
- docker-php-ext-configure gd \
27
- --with-freetype-dir=/usr \
28
- --with-jpeg-dir=/usr \
29
- --with-png-dir=/usr \
30
- ; \
26
+ docker-php-ext-configure gd --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr; \
31
27
docker-php-ext-install -j "$(nproc)" \
32
28
bcmath \
33
29
exif \
Original file line number Diff line number Diff line change @@ -12,11 +12,7 @@ RUN set -ex; \
12
12
libzip-dev \
13
13
; \
14
14
\
15
- docker-php-ext-configure gd \
16
- --with-freetype-dir=/usr \
17
- --with-jpeg-dir=/usr \
18
- --with-png-dir=/usr \
19
- ; \
15
+ docker-php-ext-configure gd --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr; \
20
16
docker-php-ext-install -j "$(nproc)" \
21
17
bcmath \
22
18
exif \
Original file line number Diff line number Diff line change @@ -21,11 +21,7 @@ RUN set -ex; \
21
21
libzip-dev \
22
22
; \
23
23
\
24
- docker-php-ext-configure gd \
25
- --with-freetype-dir=/usr \
26
- --with-jpeg-dir=/usr \
27
- --with-png-dir=/usr \
28
- ; \
24
+ docker-php-ext-configure gd --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr; \
29
25
docker-php-ext-install -j "$(nproc)" \
30
26
bcmath \
31
27
exif \
Original file line number Diff line number Diff line change @@ -23,11 +23,7 @@ RUN set -ex; \
23
23
libzip-dev \
24
24
; \
25
25
\
26
- docker-php-ext-configure gd \
27
- --with-freetype-dir=/usr \
28
- --with-jpeg-dir=/usr \
29
- --with-png-dir=/usr \
30
- ; \
26
+ docker-php-ext-configure gd --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr; \
31
27
docker-php-ext-install -j "$(nproc)" \
32
28
bcmath \
33
29
exif \
Original file line number Diff line number Diff line change 1
- FROM php:7.1 -apache
1
+ FROM php:7.4 -apache
2
2
3
3
# persistent dependencies
4
4
RUN set -eux; \
@@ -20,13 +20,10 @@ RUN set -ex; \
20
20
libjpeg-dev \
21
21
libmagickwand-dev \
22
22
libpng-dev \
23
+ libzip-dev \
23
24
; \
24
25
\
25
- docker-php-ext-configure gd \
26
- --with-freetype-dir=/usr \
27
- --with-jpeg-dir=/usr \
28
- --with-png-dir=/usr \
29
- ; \
26
+ docker-php-ext-configure gd --with-freetype --with-jpeg; \
30
27
docker-php-ext-install -j "$(nproc)" \
31
28
bcmath \
32
29
exif \
File renamed without changes.
Original file line number Diff line number Diff line change 1
- FROM php:7.1 -alpine
1
+ FROM php:7.4 -alpine
2
2
3
3
# install the PHP extensions we need (https://make.wordpress.org/hosting/handbook/handbook/server-environment/#php-extensions)
4
4
RUN set -ex; \
@@ -9,13 +9,10 @@ RUN set -ex; \
9
9
imagemagick-dev \
10
10
libjpeg-turbo-dev \
11
11
libpng-dev \
12
+ libzip-dev \
12
13
; \
13
14
\
14
- docker-php-ext-configure gd \
15
- --with-freetype-dir=/usr \
16
- --with-jpeg-dir=/usr \
17
- --with-png-dir=/usr \
18
- ; \
15
+ docker-php-ext-configure gd --with-freetype --with-jpeg; \
19
16
docker-php-ext-install -j "$(nproc)" \
20
17
bcmath \
21
18
exif \
File renamed without changes.
Original file line number Diff line number Diff line change 1
- FROM php:7.1 -fpm-alpine
1
+ FROM php:7.4 -fpm-alpine
2
2
3
3
# persistent dependencies
4
4
RUN apk add --no-cache \
@@ -18,13 +18,10 @@ RUN set -ex; \
18
18
imagemagick-dev \
19
19
libjpeg-turbo-dev \
20
20
libpng-dev \
21
+ libzip-dev \
21
22
; \
22
23
\
23
- docker-php-ext-configure gd \
24
- --with-freetype-dir=/usr \
25
- --with-jpeg-dir=/usr \
26
- --with-png-dir=/usr \
27
- ; \
24
+ docker-php-ext-configure gd --with-freetype --with-jpeg; \
28
25
docker-php-ext-install -j "$(nproc)" \
29
26
bcmath \
30
27
exif \
File renamed without changes.
Original file line number Diff line number Diff line change 1
- FROM php:7.1 -fpm
1
+ FROM php:7.4 -fpm
2
2
3
3
# persistent dependencies
4
4
RUN set -eux; \
@@ -20,13 +20,10 @@ RUN set -ex; \
20
20
libjpeg-dev \
21
21
libmagickwand-dev \
22
22
libpng-dev \
23
+ libzip-dev \
23
24
; \
24
25
\
25
- docker-php-ext-configure gd \
26
- --with-freetype-dir=/usr \
27
- --with-jpeg-dir=/usr \
28
- --with-png-dir=/usr \
29
- ; \
26
+ docker-php-ext-configure gd --with-freetype --with-jpeg; \
30
27
docker-php-ext-install -j "$(nproc)" \
31
28
bcmath \
32
29
exif \
File renamed without changes.
Original file line number Diff line number Diff line change @@ -74,12 +74,19 @@ for phpVersion in "${phpVersions[@]}"; do
74
74
" Dockerfile-${base} .template" > " $dir /Dockerfile"
75
75
76
76
case " $phpVersion " in
77
- 7.1 | 7. 2 )
77
+ 7.2 )
78
78
sed -ri \
79
79
-e ' /libzip-dev/d' \
80
80
" $dir /Dockerfile"
81
81
;;
82
82
esac
83
+ case " $phpVersion " in
84
+ 7.2 | 7.3 )
85
+ sed -ri \
86
+ -e ' s!gd --with-freetype --with-jpeg!gd --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr!g' \
87
+ " $dir /Dockerfile"
88
+ ;;
89
+ esac
83
90
84
91
cp -a " $entrypoint " " $dir /docker-entrypoint.sh"
85
92
You can’t perform that action at this time.
0 commit comments