Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add template support for "--enable-debug" flag #1364

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Dockerfile-linux.template
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,18 @@ RUN set -eux; \
--enable-zts \
# https://externals.io/message/118859
--disable-zend-signals \
{{ ) else "" end -}}
{{ if env.DOCKER_PHP_ENABLE_DEBUG then ( -}}
{{ # DOCKER_PHP_ENABLE_DEBUG is not used or supported by official-images; this is for users who want to build their own php image with debug enabled -}}
{{ # example usage to regenerate Dockerfiles with debug enabled: "DOCKER_PHP_ENABLE_DEBUG=1 ./apply-templates" -}}
--enable-debug \
{{ ) else "" end -}}
; \
make -j "$(nproc)"; \
find -type f -name '*.a' -delete; \
make install; \
{{ if env.DOCKER_PHP_ENABLE_DEBUG then "" else ( -}}
{{ # DOCKER_PHP_ENABLE_DEBUG is not used by official-images -}}
find \
/usr/local \
-type f \
Expand All @@ -388,6 +395,7 @@ RUN set -eux; \
strip --strip-all "$@" || : \
' -- '{}' + \
; \
{{ ) end -}}
make clean; \
\
# https://github.com/docker-library/php/issues/692 (copy default example "php.ini" files somewhere easily discoverable)
Expand Down