Skip to content

Commit 2b648d1

Browse files
committed
Upgrade PHP to latest 7.x
1 parent f8db430 commit 2b648d1

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7-fpm
1+
FROM docker.io/library/php:7-fpm
22
RUN apt-get update && apt-get install -y \
33
libcurl4-openssl-dev \
44
libicu-dev \
@@ -17,7 +17,9 @@ RUN apt-get update && apt-get install -y \
1717
busybox-static \
1818
libmagickwand-dev \
1919
&& rm -rf /var/lib/apt/lists/*
20-
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
20+
RUN docker-php-ext-configure gd \
21+
--with-freetype \
22+
--with-jpeg
2123
RUN docker-php-ext-configure ldap --with-libdir="lib/$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"
2224
RUN docker-php-ext-install \
2325
iconv \
@@ -36,10 +38,10 @@ RUN docker-php-ext-install \
3638
pdo_pgsql \
3739
pgsql \
3840
gettext
39-
RUN pecl install APCu-5.1.17
40-
RUN pecl install memcached-3.1.3
41-
RUN pecl install redis-5.0.2
42-
RUN pecl install mcrypt-1.0.3
41+
RUN yes '' | pecl install apcu
42+
RUN yes '' | pecl install memcached
43+
RUN yes '' | pecl install redis
44+
RUN yes '' | pecl install mcrypt
4345
RUN docker-php-ext-enable \
4446
apcu \
4547
memcached \

0 commit comments

Comments
 (0)