Skip to content

Commit f30c24c

Browse files
authored
Merge pull request #333 from WyriHaximusNet/install-as-early-as-possible
Install make as early as possible
2 parents 75dcbbc + 00a3985 commit f30c24c

File tree

5 files changed

+33
-32
lines changed

5 files changed

+33
-32
lines changed

Dockerfile-nts-alpine

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,18 @@ LABEL org.label-schema.title="Opinionated ReactPHP optimised PHP Docker images"
2727

2828
RUN set -x \
2929
&& apk upgrade --no-cache \
30-
&& apk add --no-cache moreutils \
30+
&& apk add --no-cache \
31+
moreutils \
32+
make \
33+
libuv-dev \
34+
zlib-dev \
35+
icu-dev \
36+
libevent-dev \
37+
openssl-dev \
38+
bash \
39+
coreutils \
40+
procps \
41+
git \
3142
&& addgroup -g 1000 app \
3243
&& adduser -u 1000 -D -G app app --home /opt/app \
3344
&& touch /.you-are-in-a-wyrihaximus.net-php-docker-image
@@ -64,17 +75,7 @@ COPY --from=ghcr.io/php/pie:1.2.1-bin /pie /usr/bin/pie
6475

6576
RUN EXTENSION_DIR=`php-config --extension-dir 2>/dev/null` && \
6677
mv /*.so "$EXTENSION_DIR/" && \
67-
apk add --no-cache \
68-
libuv-dev \
69-
zlib-dev \
70-
icu-dev \
71-
libevent-dev \
72-
openssl-dev \
73-
bash \
74-
coreutils \
75-
procps \
76-
git \
77-
$PHPIZE_DEPS \
78+
apk add --no-cache $PHPIZE_DEPS \
7879
## Install PECL
7980
&& wget -q pear.php.net/go-pear.phar && php go-pear.phar \
8081
&& install-php-extensions pcntl pgsql pdo pdo_pgsql bcmath zip gmp iconv opcache intl sockets ffi opentelemetry \

Dockerfile-nts-debian

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ LABEL org.label-schema.name="wyrihaximusnet/php" \
1313

1414
ARG ARCH=amd64
1515

16-
RUN apt-get update \
16+
RUN set -x \
17+
&& apt-get update \
1718
&& yes | apt-get upgrade \
18-
&& set -x \
1919
&& addgroup --gid 1000 app \
2020
&& adduser --uid 1000 --gid 1000 --disabled-password app --home /opt/app \
2121
&& touch /.you-are-in-a-wyrihaximus.net-php-docker-image

Dockerfile-zts-alpine

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,20 @@ LABEL org.label-schema.title="Opinionated ReactPHP optimised PHP Docker images"
2727

2828
RUN set -x \
2929
&& apk upgrade --no-cache \
30-
&& apk add --no-cache moreutils \
30+
&& apk add --no-cache \
31+
moreutils \
32+
make \
33+
libuv-dev \
34+
zlib-dev \
35+
icu-dev \
36+
libevent-dev \
37+
openssl-dev \
38+
git \
39+
openssh-client \
40+
bash \
41+
coreutils \
42+
procps \
43+
git \
3144
&& addgroup -g 1000 app \
3245
&& adduser -u 1000 -D -G app app --home /opt/app \
3346
&& touch /.you-are-in-a-wyrihaximus.net-php-docker-image
@@ -65,20 +78,7 @@ COPY --from=ghcr.io/php/pie:1.2.1-bin /pie /usr/bin/pie
6578
RUN EXTENSION_DIR=`php-config --extension-dir 2>/dev/null` && \
6679
rm /usr/local/etc/php/conf.d/jit.ini && \
6780
mv /*.so "$EXTENSION_DIR/" && \
68-
apk add --no-cache \
69-
libuv-dev \
70-
zlib-dev \
71-
icu-dev \
72-
libevent-dev \
73-
openssl-dev \
74-
make \
75-
git \
76-
openssh-client \
77-
bash \
78-
coreutils \
79-
procps \
80-
git \
81-
$PHPIZE_DEPS \
81+
apk add --no-cache $PHPIZE_DEPS \
8282
## Install PECL
8383
&& wget -q pear.php.net/go-pear.phar && php go-pear.phar \
8484
&& install-php-extensions pcntl pgsql pdo pdo_pgsql bcmath zip gmp iconv opcache intl sockets ffi opentelemetry \

Dockerfile-zts-debian

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ LABEL org.label-schema.name="wyrihaximusnet/php" \
1313

1414
ARG ARCH=amd64
1515

16-
RUN apt-get update \
16+
RUN set -x \
17+
&& apt-get update \
1718
&& yes | apt-get upgrade \
18-
&& set -x \
1919
&& addgroup --gid 1000 app \
2020
&& adduser --uid 1000 --gid 1000 --disabled-password app --home /opt/app \
2121
&& touch /.you-are-in-a-wyrihaximus.net-php-docker-image

test/container/test_pie.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
@pytest.mark.php_zts
44
@pytest.mark.php_nts
5-
def test_make_works(host):
5+
def test_pie_works(host):
66
output = host.run('pie')
77
assert u'🥧 PHP Installer for Extensions (PIE) 1.' in output.stdout
88
assert output.stderr == ''

0 commit comments

Comments
 (0)