File tree Expand file tree Collapse file tree 5 files changed +33
-32
lines changed Expand file tree Collapse file tree 5 files changed +33
-32
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,18 @@ LABEL org.label-schema.title="Opinionated ReactPHP optimised PHP Docker images"
2727
2828RUN 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
6576RUN 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 \
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ LABEL org.label-schema.name="wyrihaximusnet/php" \
1313
1414ARG 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
Original file line number Diff line number Diff line change @@ -27,7 +27,20 @@ LABEL org.label-schema.title="Opinionated ReactPHP optimised PHP Docker images"
2727
2828RUN 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
6578RUN 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 \
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ LABEL org.label-schema.name="wyrihaximusnet/php" \
1313
1414ARG 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
Original file line number Diff line number Diff line change 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 == ''
You can’t perform that action at this time.
0 commit comments