PHP-7.4 with FFI enabled copied Dockerfile from https://github.com/docker-library/php add apt install libffi-dev & --with-ffi configure option