Use precompiled PHP extensions for docker container

This should hopefully reduce the build times for cross compiled images, as we dont have to build extensions from source there.
This commit is contained in:
Jan Böhmer 2023-02-05 18:58:57 +01:00
parent ba5ae35809
commit 66e566b99a
4 changed files with 127 additions and 13 deletions

View file

@ -39,5 +39,10 @@ if [ -d /var/www/html/var/db ]; then
fi
fi
# first arg is `-f` or `--some-option` (taken from https://github.com/docker-library/php/blob/master/8.2/bullseye/apache/docker-php-entrypoint)
if [ "${1#-}" != "$1" ]; then
set -- apache2-foreground "$@"
fi
# Pass to the original entrypoint
exec "$@"