File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ ARG NODE_MAJOR
9
9
ENV NODE_MAJOR=$NODE_MAJOR
10
10
11
11
# Install system dependencies first - these don't change much
12
- RUN export DEBIAN_FRONTEND=noninteractive \
12
+ RUN set -eux; \
13
+ export DEBIAN_FRONTEND=noninteractive \
13
14
&& apt update \
14
15
&& apt install -y --no-install-recommends \
15
16
ca-certificates \
@@ -52,7 +53,8 @@ ENV COMPOSER_HOME=/usr/local/share/composer \
52
53
53
54
# This may look a bit long, but it's just a big `apt install` section, followed by a cleanup,
54
55
# so that we get a single compact layer, with not too many layer overwrites.
55
- RUN export OS_VERSION=$(cat /etc/os-release | grep VERSION_ID | cut -d '"' -f2) \
56
+ RUN set -eux; \
57
+ export OS_VERSION=$(cat /etc/os-release | grep VERSION_ID | cut -d '"' -f2) \
56
58
&& apt update \
57
59
&& apt upgrade -y \
58
60
&& apt install -y --no-install-recommends \
@@ -290,7 +292,8 @@ COPY composer.json \
290
292
/tools/
291
293
292
294
# Set default PHP version based on the `composer.json` `config.platform.php` setting
293
- RUN export DEFAULT_PHP_VERSION=$(jq -r '.config.platform.php | sub("(?<minor>[0-9.]).99$"; "\( .minor)")' /tools/composer.json) \
295
+ RUN set -eux; \
296
+ export DEFAULT_PHP_VERSION=$(jq -r '.config.platform.php | sub("(?<minor>[0-9.]).99$"; "\( .minor)")' /tools/composer.json) \
294
297
&& update-alternatives --set php /usr/bin/php$DEFAULT_PHP_VERSION \
295
298
&& update-alternatives --set phpize /usr/bin/phpize$DEFAULT_PHP_VERSION \
296
299
&& update-alternatives --set php-config /usr/bin/php-config$DEFAULT_PHP_VERSION \
You can’t perform that action at this time.
0 commit comments