Use PHP7.
This commit is contained in:
parent
4a6bfa584b
commit
79a41e67d5
@ -9,8 +9,10 @@ RUN set -xe && \
|
|||||||
apk update && apk upgrade && \
|
apk update && apk upgrade && \
|
||||||
apk add --no-cache --virtual=run-deps \
|
apk add --no-cache --virtual=run-deps \
|
||||||
nginx git ca-certificates curl \
|
nginx git ca-certificates curl \
|
||||||
php5 php5-fpm php5-curl php5-dom php5-gd php5-json php5-mcrypt php5-pcntl \
|
php7 php7-fpm php7-curl php7-dom php7-gd php7-iconv php7-json php7-mcrypt \
|
||||||
php5-pdo php5-pdo_pgsql php5-pgsql php5-pdo_mysql php5-mysql php5-mysqli php5-posix
|
php7-pgsql php7-pcntl php7-pdo php7-pdo_pgsql \
|
||||||
|
php7-mysqli php7-pdo_mysql \
|
||||||
|
php7-mbstring php7-posix php7-session
|
||||||
|
|
||||||
# Add user www-data for php-fpm.
|
# Add user www-data for php-fpm.
|
||||||
# 82 is the standard uid/gid for "www-data" in Alpine.
|
# 82 is the standard uid/gid for "www-data" in Alpine.
|
||||||
|
|||||||
@ -2,10 +2,9 @@
|
|||||||
|
|
||||||
# Make sure to have a defined set of PHP binaries,
|
# Make sure to have a defined set of PHP binaries,
|
||||||
# regardless of how the package maintainer(s) named those.
|
# regardless of how the package maintainer(s) named those.
|
||||||
if [ ! -f /usr/bin/php ]; then
|
|
||||||
ln -s /usr/bin/php5 /usr/bin/php
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f /usr/bin/php-fpm ]; then
|
rm /usr/bin/php
|
||||||
ln -s /usr/bin/php-fpm5 /usr/bin/php-fpm
|
ln -s /usr/bin/php7 /usr/bin/php
|
||||||
fi
|
|
||||||
|
rm /usr/sbin/php-fpm
|
||||||
|
ln -s /usr/sbin/php-fpm7 /usr/sbin/php-fpm
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user