From 0a24f4fae2fdea7c3de075a48b4191534b1189ed Mon Sep 17 00:00:00 2001 From: J0WI Date: Fri, 13 Dec 2019 00:59:39 +0100 Subject: [PATCH] Update to PHP 7.4 --- Dockerfile-alpine.template | 12 +++++++++--- Dockerfile-debian.template | 12 +++++++++--- apache/Dockerfile | 12 +++++++++--- fpm-alpine/Dockerfile | 12 +++++++++--- fpm/Dockerfile | 12 +++++++++--- 5 files changed, 45 insertions(+), 15 deletions(-) diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index 24115e48..65c31c5e 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -1,4 +1,4 @@ -FROM php:7.3-%%VARIANT%% +FROM php:7.4-%%VARIANT%% # docker-entrypoint.sh dependencies RUN apk add --no-cache \ @@ -17,8 +17,14 @@ RUN set -ex; \ libzip-dev \ ; \ \ - 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; \ - docker-php-ext-install bz2 gd mysqli opcache zip; \ + docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \ + docker-php-ext-install -j "$(nproc)" \ + bz2 \ + gd \ + mysqli \ + opcache \ + zip \ + ; \ \ runDeps="$( \ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \ diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index b06d3d53..52df106c 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -1,4 +1,4 @@ -FROM php:7.3-%%VARIANT%% +FROM php:7.4-%%VARIANT%% # Install dependencies RUN set -ex; \ @@ -16,8 +16,14 @@ RUN set -ex; \ libzip-dev \ ; \ \ - 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; \ - docker-php-ext-install bz2 gd mysqli opcache zip; \ + docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \ + docker-php-ext-install -j "$(nproc)" \ + bz2 \ + gd \ + mysqli \ + opcache \ + zip \ + ; \ \ apt-mark auto '.*' > /dev/null; \ apt-mark manual $savedAptMark; \ diff --git a/apache/Dockerfile b/apache/Dockerfile index dade3362..ebb8154a 100644 --- a/apache/Dockerfile +++ b/apache/Dockerfile @@ -1,4 +1,4 @@ -FROM php:7.3-apache +FROM php:7.4-apache # Install dependencies RUN set -ex; \ @@ -16,8 +16,14 @@ RUN set -ex; \ libzip-dev \ ; \ \ - 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; \ - docker-php-ext-install bz2 gd mysqli opcache zip; \ + docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \ + docker-php-ext-install -j "$(nproc)" \ + bz2 \ + gd \ + mysqli \ + opcache \ + zip \ + ; \ \ apt-mark auto '.*' > /dev/null; \ apt-mark manual $savedAptMark; \ diff --git a/fpm-alpine/Dockerfile b/fpm-alpine/Dockerfile index 11510a4b..c717b3e5 100644 --- a/fpm-alpine/Dockerfile +++ b/fpm-alpine/Dockerfile @@ -1,4 +1,4 @@ -FROM php:7.3-fpm-alpine +FROM php:7.4-fpm-alpine # docker-entrypoint.sh dependencies RUN apk add --no-cache \ @@ -17,8 +17,14 @@ RUN set -ex; \ libzip-dev \ ; \ \ - 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; \ - docker-php-ext-install bz2 gd mysqli opcache zip; \ + docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \ + docker-php-ext-install -j "$(nproc)" \ + bz2 \ + gd \ + mysqli \ + opcache \ + zip \ + ; \ \ runDeps="$( \ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \ diff --git a/fpm/Dockerfile b/fpm/Dockerfile index a8598bb5..9a542323 100644 --- a/fpm/Dockerfile +++ b/fpm/Dockerfile @@ -1,4 +1,4 @@ -FROM php:7.3-fpm +FROM php:7.4-fpm # Install dependencies RUN set -ex; \ @@ -16,8 +16,14 @@ RUN set -ex; \ libzip-dev \ ; \ \ - 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; \ - docker-php-ext-install bz2 gd mysqli opcache zip; \ + docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm; \ + docker-php-ext-install -j "$(nproc)" \ + bz2 \ + gd \ + mysqli \ + opcache \ + zip \ + ; \ \ apt-mark auto '.*' > /dev/null; \ apt-mark manual $savedAptMark; \