The purpouse of this image is to provide an Alpine Linux environment with PHP 8 onboard, its FFI extension enabled and the libstemmer compiled as a shared library. Besides, composer is included.
Snowball is a small string processing language designed for creating stemming algorithms for use in Information Retrieval. Libstemmer instead, contains a complete set of Snowball stemming algorithms that you can include into a C project of your own. With libstemmer you don't need to use the Snowball compiler.
$ docker run --name php-libstemmer -v $PWD/:/var/www -d amaccis/php-libstemmer
version: '3.7'
services:
php-fpm:
image: amaccis/php-libstemmer
working_dir: /var/www
volumes:
- ./:/var/www