php-mongodb

Source

FROM stagex/pallet-clang-gnu-busybox AS build
ARG VERSION

COPY --from=stagex/core-php-dev . /
COPY --from=stagex/core-libzstd . /
COPY --from=stagex/core-openssl . /

ADD fetch/mongodb-${VERSION}.tgz .

WORKDIR /mongodb-${VERSION}/
RUN --network=none <<-EOF
	set -ex
	phpize
	./configure \
		--enable-mongodb \
		--with-mongodb-ssl=openssl
	make
	make install INSTALL_ROOT=/rootfs
	install -vDm644 -t /rootfs/usr/share/licenses/php-mongodb LICENSE
	mkdir -p "/rootfs/etc/php/conf.d"
	echo "extension=mongodb.so" > "/rootfs/etc/php/conf.d/10-mongodb.ini"
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /
Copied to clipboard!