Skip to content

Commit b696c1f

Browse files
J0WIibennetch
authored andcommitted
Update to PHP 7.4 (#257)
* Update to PHP 7.4
1 parent 53a7935 commit b696c1f

File tree

5 files changed

+50
-15
lines changed

5 files changed

+50
-15
lines changed

Dockerfile-alpine.template

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.2-%%VARIANT%%
1+
FROM php:7.4-%%VARIANT%%
22

33
# docker-entrypoint.sh dependencies
44
RUN apk add --no-cache \
@@ -14,10 +14,17 @@ RUN set -ex; \
1414
libpng-dev \
1515
libwebp-dev \
1616
libxpm-dev \
17+
libzip-dev \
1718
; \
1819
\
19-
docker-php-ext-configure gd --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr; \
20-
docker-php-ext-install bz2 gd mysqli opcache zip; \
20+
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \
21+
docker-php-ext-install -j "$(nproc)" \
22+
bz2 \
23+
gd \
24+
mysqli \
25+
opcache \
26+
zip \
27+
; \
2128
\
2229
runDeps="$( \
2330
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \

Dockerfile-debian.template

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.2-%%VARIANT%%
1+
FROM php:7.4-%%VARIANT%%
22

33
# Install dependencies
44
RUN set -ex; \
@@ -13,10 +13,17 @@ RUN set -ex; \
1313
libpng-dev \
1414
libwebp-dev \
1515
libxpm-dev \
16+
libzip-dev \
1617
; \
1718
\
18-
docker-php-ext-configure gd --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr; \
19-
docker-php-ext-install bz2 gd mysqli opcache zip; \
19+
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \
20+
docker-php-ext-install -j "$(nproc)" \
21+
bz2 \
22+
gd \
23+
mysqli \
24+
opcache \
25+
zip \
26+
; \
2027
\
2128
apt-mark auto '.*' > /dev/null; \
2229
apt-mark manual $savedAptMark; \

apache/Dockerfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.2-apache
1+
FROM php:7.4-apache
22

33
# Install dependencies
44
RUN set -ex; \
@@ -13,10 +13,17 @@ RUN set -ex; \
1313
libpng-dev \
1414
libwebp-dev \
1515
libxpm-dev \
16+
libzip-dev \
1617
; \
1718
\
18-
docker-php-ext-configure gd --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr; \
19-
docker-php-ext-install bz2 gd mysqli opcache zip; \
19+
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \
20+
docker-php-ext-install -j "$(nproc)" \
21+
bz2 \
22+
gd \
23+
mysqli \
24+
opcache \
25+
zip \
26+
; \
2027
\
2128
apt-mark auto '.*' > /dev/null; \
2229
apt-mark manual $savedAptMark; \

fpm-alpine/Dockerfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.2-fpm-alpine
1+
FROM php:7.4-fpm-alpine
22

33
# docker-entrypoint.sh dependencies
44
RUN apk add --no-cache \
@@ -14,10 +14,17 @@ RUN set -ex; \
1414
libpng-dev \
1515
libwebp-dev \
1616
libxpm-dev \
17+
libzip-dev \
1718
; \
1819
\
19-
docker-php-ext-configure gd --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr; \
20-
docker-php-ext-install bz2 gd mysqli opcache zip; \
20+
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \
21+
docker-php-ext-install -j "$(nproc)" \
22+
bz2 \
23+
gd \
24+
mysqli \
25+
opcache \
26+
zip \
27+
; \
2128
\
2229
runDeps="$( \
2330
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \

fpm/Dockerfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.2-fpm
1+
FROM php:7.4-fpm
22

33
# Install dependencies
44
RUN set -ex; \
@@ -13,10 +13,17 @@ RUN set -ex; \
1313
libpng-dev \
1414
libwebp-dev \
1515
libxpm-dev \
16+
libzip-dev \
1617
; \
1718
\
18-
docker-php-ext-configure gd --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr; \
19-
docker-php-ext-install bz2 gd mysqli opcache zip; \
19+
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \
20+
docker-php-ext-install -j "$(nproc)" \
21+
bz2 \
22+
gd \
23+
mysqli \
24+
opcache \
25+
zip \
26+
; \
2027
\
2128
apt-mark auto '.*' > /dev/null; \
2229
apt-mark manual $savedAptMark; \

0 commit comments

Comments
 (0)