You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Dockerfile-linux.template
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -385,11 +385,18 @@ RUN set -eux; \
385
385
{{ if [ "8.1", "8.2" ] | index(env.version | rtrimstr("-rc")) then ( -}}
386
386
--enable-zend-max-execution-timers \
387
387
{{ ) else "" end -}}
388
+
{{ ) else "" end -}}
389
+
{{ if env.DOCKER_PHP_ENABLE_DEBUG then ( -}}
390
+
{{ # 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 -}}
391
+
{{ # example usage to regenerate Dockerfiles with debug enabled: "DOCKER_PHP_ENABLE_DEBUG=1 ./apply-templates" -}}
392
+
--enable-debug \
388
393
{{ ) else "" end -}}
389
394
; \
390
395
make -j "$(nproc)"; \
391
396
find -type f -name '*.a' -delete; \
392
397
make install; \
398
+
{{ if env.DOCKER_PHP_ENABLE_DEBUG then "" else ( -}}
399
+
{{ # DOCKER_PHP_ENABLE_DEBUG is not used by official-images -}}
393
400
find \
394
401
/usr/local \
395
402
-type f \
@@ -398,6 +405,7 @@ RUN set -eux; \
398
405
strip --strip-all "$@" || : \
399
406
' -- '{}' + \
400
407
; \
408
+
{{ ) end -}}
401
409
make clean; \
402
410
\
403
411
# https://github.com/docker-library/php/issues/692 (copy default example "php.ini" files somewhere easily discoverable)
0 commit comments