mirror of
https://github.com/danog/php.git
synced 2024-11-26 20:04:58 +01:00
Add "--enable-embed" to Debian-based CLI variants
This is used for things like NGINX Unit to embed PHP (similar to `mod_php` in Apache, but a more general interface).
This commit is contained in:
parent
4908ef2763
commit
73ccb45f47
3
7.3/buster/cli/Dockerfile
generated
3
7.3/buster/cli/Dockerfile
generated
@ -48,6 +48,9 @@ RUN set -eux; \
|
||||
chown www-data:www-data /var/www/html; \
|
||||
chmod 777 /var/www/html
|
||||
|
||||
# https://github.com/docker-library/php/pull/939#issuecomment-730501748
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed
|
||||
|
||||
# Apply stack smash protection to functions using local buffers and alloca()
|
||||
# Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64)
|
||||
# Enable optimization (-O2)
|
||||
|
3
7.3/stretch/cli/Dockerfile
generated
3
7.3/stretch/cli/Dockerfile
generated
@ -48,6 +48,9 @@ RUN set -eux; \
|
||||
chown www-data:www-data /var/www/html; \
|
||||
chmod 777 /var/www/html
|
||||
|
||||
# https://github.com/docker-library/php/pull/939#issuecomment-730501748
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed
|
||||
|
||||
# Apply stack smash protection to functions using local buffers and alloca()
|
||||
# Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64)
|
||||
# Enable optimization (-O2)
|
||||
|
3
7.4/buster/cli/Dockerfile
generated
3
7.4/buster/cli/Dockerfile
generated
@ -48,6 +48,9 @@ RUN set -eux; \
|
||||
chown www-data:www-data /var/www/html; \
|
||||
chmod 777 /var/www/html
|
||||
|
||||
# https://github.com/docker-library/php/pull/939#issuecomment-730501748
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed
|
||||
|
||||
# Apply stack smash protection to functions using local buffers and alloca()
|
||||
# Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64)
|
||||
# Enable optimization (-O2)
|
||||
|
3
8.0/buster/cli/Dockerfile
generated
3
8.0/buster/cli/Dockerfile
generated
@ -48,6 +48,9 @@ RUN set -eux; \
|
||||
chown www-data:www-data /var/www/html; \
|
||||
chmod 777 /var/www/html
|
||||
|
||||
# https://github.com/docker-library/php/pull/939#issuecomment-730501748
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed
|
||||
|
||||
# Apply stack smash protection to functions using local buffers and alloca()
|
||||
# Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64)
|
||||
# Enable optimization (-O2)
|
||||
|
4
Dockerfile-cli-block-1.template
Normal file
4
Dockerfile-cli-block-1.template
Normal file
@ -0,0 +1,4 @@
|
||||
{{ if env.suite | startswith("alpine") | not then ( -}}
|
||||
# https://github.com/docker-library/php/pull/939#issuecomment-730501748
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed
|
||||
{{ ) else "" end -}}
|
Loading…
Reference in New Issue
Block a user