FROM php:8-cli-alpine RUN apk add --no-cache --virtual .persistent-deps libffi-dev \ && docker-php-ext-configure ffi --with-ffi \ && docker-php-ext-install ffi \ && apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ php8-phpdbg