Skip to content

Commit

Permalink
Update to PHP 7.4 (#257)
Browse files Browse the repository at this point in the history
* Update to PHP 7.4
  • Loading branch information
J0WI authored and ibennetch committed Dec 20, 2019
1 parent 53a7935 commit b696c1f
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 15 deletions.
13 changes: 10 additions & 3 deletions Dockerfile-alpine.template
@@ -1,4 +1,4 @@
FROM php:7.2-%%VARIANT%%
FROM php:7.4-%%VARIANT%%

# docker-entrypoint.sh dependencies
RUN apk add --no-cache \
Expand All @@ -14,10 +14,17 @@ RUN set -ex; \
libpng-dev \
libwebp-dev \
libxpm-dev \
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 \
Expand Down
13 changes: 10 additions & 3 deletions Dockerfile-debian.template
@@ -1,4 +1,4 @@
FROM php:7.2-%%VARIANT%%
FROM php:7.4-%%VARIANT%%

# Install dependencies
RUN set -ex; \
Expand All @@ -13,10 +13,17 @@ RUN set -ex; \
libpng-dev \
libwebp-dev \
libxpm-dev \
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; \
Expand Down
13 changes: 10 additions & 3 deletions apache/Dockerfile
@@ -1,4 +1,4 @@
FROM php:7.2-apache
FROM php:7.4-apache

# Install dependencies
RUN set -ex; \
Expand All @@ -13,10 +13,17 @@ RUN set -ex; \
libpng-dev \
libwebp-dev \
libxpm-dev \
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; \
Expand Down
13 changes: 10 additions & 3 deletions fpm-alpine/Dockerfile
@@ -1,4 +1,4 @@
FROM php:7.2-fpm-alpine
FROM php:7.4-fpm-alpine

# docker-entrypoint.sh dependencies
RUN apk add --no-cache \
Expand All @@ -14,10 +14,17 @@ RUN set -ex; \
libpng-dev \
libwebp-dev \
libxpm-dev \
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 \
Expand Down
13 changes: 10 additions & 3 deletions fpm/Dockerfile
@@ -1,4 +1,4 @@
FROM php:7.2-fpm
FROM php:7.4-fpm

# Install dependencies
RUN set -ex; \
Expand All @@ -13,10 +13,17 @@ RUN set -ex; \
libpng-dev \
libwebp-dev \
libxpm-dev \
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; \
Expand Down

0 comments on commit b696c1f

Please sign in to comment.