@@ -63,44 +63,14 @@ ENV PHP_LDFLAGS="-Wl,-O1 -pie"
63
63
64
64
ENV GPG_KEYS AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD
65
65
66
- ENV PHP_VERSION 8.4.5
67
- ENV PHP_URL="https://www.php.net/distributions/php-8.4.5.tar.xz" PHP_ASC_URL="https://www.php.net/distributions/php-8.4.5.tar.xz.asc"
68
- ENV PHP_SHA256="0d3270bbce4d9ec617befce52458b763fd461d475f1fe2ed878bb8573faed327"
69
-
70
66
ADD bin/docker/deepbind.patch /
71
67
72
68
RUN set -eux; \
73
- \
74
- savedAptMark="$(apt-mark showmanual)" ; \
75
- apt-get update; \
76
- apt-get install -y --no-install-recommends gnupg; \
77
- rm -rf /var/lib/apt/lists/*; \
78
69
\
79
70
mkdir -p /usr/src; \
80
71
cd /usr/src; \
81
72
\
82
- curl -fsSL -o php.tar.xz "$PHP_URL" ; \
83
- \
84
- if [ -n "$PHP_SHA256" ]; then \
85
- echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; \
86
- fi; \
87
- \
88
- if [ -n "$PHP_ASC_URL" ]; then \
89
- curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL" ; \
90
- export GNUPGHOME="$(mktemp -d)" ; \
91
- for key in $GPG_KEYS; do \
92
- gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; \
93
- done; \
94
- gpg --batch --verify php.tar.xz.asc php.tar.xz; \
95
- gpgconf --kill all; \
96
- rm -rf "$GNUPGHOME" ; \
97
- fi; \
98
- \
99
- apt-mark auto '.*' > /dev/null; \
100
- apt-mark manual $savedAptMark > /dev/null; \
101
- apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
102
-
103
- COPY bin/docker/docker-php-source /usr/local/bin/
73
+ git clone https://github.com/php/php-src.git --depth 1 --recursive -b PHP-8.4 php
104
74
105
75
RUN set -eux; \
106
76
\
@@ -127,7 +97,6 @@ RUN set -eux; \
127
97
PHP_BUILD_PROVIDER='https://github.com/docker-library/php' \
128
98
PHP_UNAME='Linux - Docker' \
129
99
; \
130
- docker-php-source extract; \
131
100
cd /usr/src/php; \
132
101
patch -p1 < /deepbind.patch; \
133
102
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" ; \
@@ -186,7 +155,7 @@ RUN set -eux; \
186
155
cp -v php.ini-* "$PHP_INI_DIR/" ; \
187
156
\
188
157
cd /; \
189
- docker-php-source delete ; rm deepbind.patch; \
158
+ rm -r /usr/src/php ; rm deepbind.patch; \
190
159
\
191
160
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
192
161
apt-mark auto '.*' > /dev/null; \
@@ -257,7 +226,6 @@ LABEL "org.opencontainers.image.description"="A static analysis tool for finding
257
226
LABEL "org.opencontainers.image.licenses" =MIT
258
227
259
228
ENV PHP_INI_DIR /usr/local/etc/php
260
- ENV PHP_VERSION 8.4.4
261
229
ENV PATH=/composer/vendor/bin:${PATH}
262
230
263
231
ENV USE_ZEND_ALLOC=0
0 commit comments