@@ -29,7 +29,7 @@ RUN apk add --no-cache \
2929 openssl
3030
3131# ensure www-data user exists
32- RUN set -xe ; \
32+ RUN set -eux ; \
3333 addgroup -g 82 -S www-data; \
3434 adduser -u 82 -D -S -G www-data www-data
3535# 82 is the standard uid/gid for "www-data" in Alpine
@@ -66,11 +66,9 @@ ENV PHP_VERSION 7.1.30
6666ENV PHP_URL="https://www.php.net/get/php-7.1.30.tar.xz/from/this/mirror" PHP_ASC_URL="https://www.php.net/get/php-7.1.30.tar.xz.asc/from/this/mirror"
6767ENV PHP_SHA256="6310599811536dbe87e4bcf212bf93196bdfaff519d0c821e4c0068efd096a7c" PHP_MD5=""
6868
69- RUN set -xe ; \
69+ RUN set -eux ; \
7070 \
71- apk add --no-cache --virtual .fetch-deps \
72- gnupg \
73- ; \
71+ apk add --no-cache --virtual .fetch-deps gnupg; \
7472 \
7573 mkdir -p /usr/src; \
7674 cd /usr/src; \
@@ -91,15 +89,15 @@ RUN set -xe; \
9189 gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \
9290 done; \
9391 gpg --batch --verify php.tar.xz.asc php.tar.xz; \
94- command -v gpgconf > /dev/null && gpgconf --kill all; \
92+ gpgconf --kill all; \
9593 rm -rf "$GNUPGHOME" ; \
9694 fi; \
9795 \
9896 apk del --no-network .fetch-deps
9997
10098COPY docker-php-source /usr/local/bin/
10199
102- RUN set -xe ; \
100+ RUN set -eux ; \
103101 apk add --no-cache --virtual .build-deps \
104102 $PHPIZE_DEPS \
105103 coreutils \
@@ -144,12 +142,12 @@ RUN set -xe; \
144142# https://manpages.debian.org/stretch/libpcre3-dev/pcrejit.3.en.html#AVAILABILITY_OF_JIT_SUPPORT
145143 $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit' ) \
146144 \
147- $PHP_EXTRA_CONFIGURE_ARGS \
145+ ${ PHP_EXTRA_CONFIGURE_ARGS:-} \
148146 ; \
149147 make -j "$(nproc)" ; \
150148 find -type f -name '*.a' -delete; \
151149 make install; \
152- { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } ; \
150+ find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; \
153151 make clean; \
154152 \
155153# https://github.com/docker-library/php/issues/692 (copy default example "php.ini" files somewhere easily discoverable)
@@ -180,7 +178,7 @@ ENTRYPOINT ["docker-php-entrypoint"]
180178# #<autogenerated>##
181179WORKDIR /var/www/html
182180
183- RUN set -ex ; \
181+ RUN set -eux ; \
184182 cd /usr/local/etc; \
185183 if [ -d php-fpm.d ]; then \
186184 # for some reason, upstream's php-fpm.conf.default has "include=NONE/etc/php-fpm.d/*.conf"
0 commit comments