FROM php:8-alpine
RUN apk add autoconf gcc libc-dev make --update
RUN pecl install mongodb
RUN echo 'extension=mongodb.so' > /usr/local/etc/php/conf.d/docker-php-ext-mongodb.ini