Skip to content

Commit bbc9f59

Browse files
committed
Apply the Debian PHP 8.2 patch
1 parent 1e93fe0 commit bbc9f59

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ENV FIRST_START_DONE="/container/first-start-done"
2020
COPY --from=botsudo/docker-rustpython:latest /usr/local/bin/rustpython /usr/local/bin/rustpython
2121
COPY --from=botsudo/docker-rustpython:latest /usr/local/share/sbom/rustpython.spdx.json /usr/local/share/sbom/rustpython.spdx.json
2222

23-
RUN apk add --no-cache --update nginx curl bash musl \
23+
RUN apk add --no-cache --update nginx curl bash musl patch \
2424
openssl libgcc \
2525
php${PHP_VERSION_MAJOR}${PHP_VERSION_MINOR}-fpm php${PHP_VERSION_MAJOR}${PHP_VERSION_MINOR} php${PHP_VERSION_MAJOR}${PHP_VERSION_MINOR}-session \
2626
php${PHP_VERSION_MAJOR}${PHP_VERSION_MINOR}-json php${PHP_VERSION_MAJOR}${PHP_VERSION_MINOR}-curl php${PHP_VERSION_MAJOR}${PHP_VERSION_MINOR}-xml php${PHP_VERSION_MAJOR}${PHP_VERSION_MINOR}-gettext php${PHP_VERSION_MAJOR}${PHP_VERSION_MINOR}-mbstring php${PHP_VERSION_MAJOR}${PHP_VERSION_MINOR}-ldap php${PHP_VERSION_MAJOR}${PHP_VERSION_MINOR}-ctype && \
@@ -60,6 +60,8 @@ USER deploy:deploy
6060
RUN curl -# -L -o phpldapadmin.tar.gz ${DIST_URL} && \
6161
tar -xzf phpldapadmin.tar.gz -C /var/www/phpldapadmin --strip-components=1 && \
6262
rm phpldapadmin.tar.gz && \
63+
wget https://sources.debian.org/data/main/p/phpldapadmin/1.2.6.6-2/debian/patches/Fix-dynamic-property-PHP-8.2.patch && \
64+
patch -p 1 -f < ./Fix-dynamic-property-PHP-8.2.patch && \
6365
rm -vr ./doc/ ./.gitignore ./*.md
6466

6567
COPY <<-EOT /usr/local/share/sbom/phpldapadmin.spdx.json

0 commit comments

Comments
 (0)