Skip to content

Commit

Permalink
Update to PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
J0WI committed Dec 12, 2019
1 parent f2f3320 commit 0a24f4f
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 15 deletions.
12 changes: 9 additions & 3 deletions 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 \
Expand All @@ -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 \
Expand Down
12 changes: 9 additions & 3 deletions Dockerfile-debian.template
@@ -1,4 +1,4 @@
FROM php:7.3-%%VARIANT%%
FROM php:7.4-%%VARIANT%%

# Install dependencies
RUN set -ex; \
Expand All @@ -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; \
Expand Down
12 changes: 9 additions & 3 deletions apache/Dockerfile
@@ -1,4 +1,4 @@
FROM php:7.3-apache
FROM php:7.4-apache

# Install dependencies
RUN set -ex; \
Expand All @@ -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; \
Expand Down
12 changes: 9 additions & 3 deletions 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 \
Expand All @@ -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 \
Expand Down
12 changes: 9 additions & 3 deletions fpm/Dockerfile
@@ -1,4 +1,4 @@
FROM php:7.3-fpm
FROM php:7.4-fpm

# Install dependencies
RUN set -ex; \
Expand All @@ -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; \
Expand Down

0 comments on commit 0a24f4f

Please sign in to comment.