FROM asynclabsco/php:8.2

RUN mkdir /var/www/.composer && chmod 777 /var/www/.composer

ARG WITH_XDEBUG=true

RUN if [ $WITH_XDEBUG = "true" ] ; then \
	    pecl install xdebug-3.2.1; \
	    docker-php-ext-enable xdebug; \
	fi ;

RUN apt-get update && \
    apt-get install -y nano
