Skip to content

Commit cbd421f

Browse files
committed
Fix some JIT issues by switching to upstream
1 parent 2bd70db commit cbd421f

File tree

2 files changed

+2
-67
lines changed

2 files changed

+2
-67
lines changed

bin/docker/Dockerfile

+2-33
Original file line numberDiff line numberDiff line change
@@ -63,44 +63,14 @@ ENV PHP_LDFLAGS="-Wl,-O1 -pie"
6363

6464
ENV GPG_KEYS AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD
6565

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-
7066
ADD bin/docker/deepbind.patch /
7167

7268
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/*; \
7869
\
7970
mkdir -p /usr/src; \
8071
cd /usr/src; \
8172
\
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
10474

10575
RUN set -eux; \
10676
\
@@ -127,7 +97,6 @@ RUN set -eux; \
12797
PHP_BUILD_PROVIDER='https://github.com/docker-library/php' \
12898
PHP_UNAME='Linux - Docker' \
12999
; \
130-
docker-php-source extract; \
131100
cd /usr/src/php; \
132101
patch -p1 < /deepbind.patch; \
133102
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \
@@ -186,7 +155,7 @@ RUN set -eux; \
186155
cp -v php.ini-* "$PHP_INI_DIR/"; \
187156
\
188157
cd /; \
189-
docker-php-source delete; rm deepbind.patch; \
158+
rm -r /usr/src/php; rm deepbind.patch; \
190159
\
191160
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
192161
apt-mark auto '.*' > /dev/null; \

bin/docker/docker-php-source

-34
This file was deleted.

0 commit comments

Comments
 (0)