Skip to content

Commit 532bb60

Browse files
authored
Merge pull request #454 from J0WI/php74
PHP 7.4
2 parents 17f48a1 + c63f536 commit 532bb60

21 files changed

+35
-84
lines changed

.travis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ language: bash
22
services: docker
33

44
env:
5-
- VARIANT=php7.1/apache
6-
- VARIANT=php7.1/fpm
7-
- VARIANT=php7.1/fpm-alpine
8-
- VARIANT=php7.1/cli
95
- VARIANT=php7.2/apache
106
- VARIANT=php7.2/fpm
117
- VARIANT=php7.2/fpm-alpine
@@ -14,6 +10,10 @@ env:
1410
- VARIANT=php7.3/fpm
1511
- VARIANT=php7.3/fpm-alpine
1612
- 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
1717

1818
install:
1919
- git clone https://github.com/docker-library/official-images.git ~/official-images

Dockerfile-alpine.template

+1-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ RUN set -ex; \
2121
libzip-dev \
2222
; \
2323
\
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; \
2925
docker-php-ext-install -j "$(nproc)" \
3026
bcmath \
3127
exif \

Dockerfile-cli.template

+1-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ RUN set -ex; \
1212
libzip-dev \
1313
; \
1414
\
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; \
2016
docker-php-ext-install -j "$(nproc)" \
2117
bcmath \
2218
exif \

Dockerfile-debian.template

+1-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ RUN set -ex; \
2323
libzip-dev \
2424
; \
2525
\
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; \
3127
docker-php-ext-install -j "$(nproc)" \
3228
bcmath \
3329
exif \

php7.2/apache/Dockerfile

+1-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ RUN set -ex; \
2222
libpng-dev \
2323
; \
2424
\
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; \
3026
docker-php-ext-install -j "$(nproc)" \
3127
bcmath \
3228
exif \

php7.2/cli/Dockerfile

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ RUN set -ex; \
1111
libpng-dev \
1212
; \
1313
\
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; \
1915
docker-php-ext-install -j "$(nproc)" \
2016
bcmath \
2117
exif \

php7.2/fpm-alpine/Dockerfile

+1-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ RUN set -ex; \
2020
libpng-dev \
2121
; \
2222
\
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; \
2824
docker-php-ext-install -j "$(nproc)" \
2925
bcmath \
3026
exif \

php7.2/fpm/Dockerfile

+1-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ RUN set -ex; \
2222
libpng-dev \
2323
; \
2424
\
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; \
3026
docker-php-ext-install -j "$(nproc)" \
3127
bcmath \
3228
exif \

php7.3/apache/Dockerfile

+1-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ RUN set -ex; \
2323
libzip-dev \
2424
; \
2525
\
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; \
3127
docker-php-ext-install -j "$(nproc)" \
3228
bcmath \
3329
exif \

php7.3/cli/Dockerfile

+1-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ RUN set -ex; \
1212
libzip-dev \
1313
; \
1414
\
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; \
2016
docker-php-ext-install -j "$(nproc)" \
2117
bcmath \
2218
exif \

php7.3/fpm-alpine/Dockerfile

+1-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ RUN set -ex; \
2121
libzip-dev \
2222
; \
2323
\
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; \
2925
docker-php-ext-install -j "$(nproc)" \
3026
bcmath \
3127
exif \

php7.3/fpm/Dockerfile

+1-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ RUN set -ex; \
2323
libzip-dev \
2424
; \
2525
\
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; \
3127
docker-php-ext-install -j "$(nproc)" \
3228
bcmath \
3329
exif \

php7.1/apache/Dockerfile renamed to php7.4/apache/Dockerfile

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.1-apache
1+
FROM php:7.4-apache
22

33
# persistent dependencies
44
RUN set -eux; \
@@ -20,13 +20,10 @@ RUN set -ex; \
2020
libjpeg-dev \
2121
libmagickwand-dev \
2222
libpng-dev \
23+
libzip-dev \
2324
; \
2425
\
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; \
3027
docker-php-ext-install -j "$(nproc)" \
3128
bcmath \
3229
exif \

php7.1/cli/Dockerfile renamed to php7.4/cli/Dockerfile

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.1-alpine
1+
FROM php:7.4-alpine
22

33
# install the PHP extensions we need (https://make.wordpress.org/hosting/handbook/handbook/server-environment/#php-extensions)
44
RUN set -ex; \
@@ -9,13 +9,10 @@ RUN set -ex; \
99
imagemagick-dev \
1010
libjpeg-turbo-dev \
1111
libpng-dev \
12+
libzip-dev \
1213
; \
1314
\
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; \
1916
docker-php-ext-install -j "$(nproc)" \
2017
bcmath \
2118
exif \
File renamed without changes.

php7.1/fpm-alpine/Dockerfile renamed to php7.4/fpm-alpine/Dockerfile

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.1-fpm-alpine
1+
FROM php:7.4-fpm-alpine
22

33
# persistent dependencies
44
RUN apk add --no-cache \
@@ -18,13 +18,10 @@ RUN set -ex; \
1818
imagemagick-dev \
1919
libjpeg-turbo-dev \
2020
libpng-dev \
21+
libzip-dev \
2122
; \
2223
\
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; \
2825
docker-php-ext-install -j "$(nproc)" \
2926
bcmath \
3027
exif \

php7.1/fpm/Dockerfile renamed to php7.4/fpm/Dockerfile

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.1-fpm
1+
FROM php:7.4-fpm
22

33
# persistent dependencies
44
RUN set -eux; \
@@ -20,13 +20,10 @@ RUN set -ex; \
2020
libjpeg-dev \
2121
libmagickwand-dev \
2222
libpng-dev \
23+
libzip-dev \
2324
; \
2425
\
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; \
3027
docker-php-ext-install -j "$(nproc)" \
3128
bcmath \
3229
exif \
File renamed without changes.

update.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,19 @@ for phpVersion in "${phpVersions[@]}"; do
7474
"Dockerfile-${base}.template" > "$dir/Dockerfile"
7575

7676
case "$phpVersion" in
77-
7.1 | 7.2 )
77+
7.2 )
7878
sed -ri \
7979
-e '/libzip-dev/d' \
8080
"$dir/Dockerfile"
8181
;;
8282
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
8390

8491
cp -a "$entrypoint" "$dir/docker-entrypoint.sh"
8592

0 commit comments

Comments
 (0)