Skip to content

Commit 92a435e

Browse files
authored
Merge pull request #61 from brefphp/php-build-var
2 parents 333a705 + e81cd2c commit 92a435e

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

Diff for: php-80/Dockerfile

+5-2
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ RUN make && make install
334334
RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel libxslt-devel sqlite-devel
335335

336336

337+
# Note: this variable is used when building extra/custom extensions, do not remove
338+
ENV PHP_BUILD_DIR=/tmp/php
339+
337340
# PHP Build
338341
# https://github.com/php/php-src/releases
339342
# Needs:
@@ -342,8 +345,8 @@ RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel li
342345
# - openssl
343346
# - readline
344347
# - sodium
345-
RUN mkdir -p /tmp/php
346-
WORKDIR /tmp/php
348+
RUN mkdir -p ${PHP_BUILD_DIR}
349+
WORKDIR ${PHP_BUILD_DIR}
347350

348351
# Download and unpack the source code
349352
# --location will follow redirects

Diff for: php-81/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ RUN make && make install
334334
RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel libxslt-devel sqlite-devel
335335

336336

337+
# Note: this variable is used when building extra/custom extensions, do not remove
338+
ENV PHP_BUILD_DIR=/tmp/php
339+
337340
# PHP Build
338341
# https://github.com/php/php-src/releases
339342
# Needs:

Diff for: php-82/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ RUN make && make install
334334
RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel libxslt-devel sqlite-devel
335335

336336

337+
# Note: this variable is used when building extra/custom extensions, do not remove
338+
ENV PHP_BUILD_DIR=/tmp/php
339+
337340
# PHP Build
338341
# https://github.com/php/php-src/releases
339342
# Needs:

0 commit comments

Comments
 (0)