FROM php:8.5-fpm-alpine AS production ENV PHP_OPCACHE_VALIDATE_TIMESTAMPS="0" \ PHP_OPCACHE_MAX_ACCELERATED_FILES="10000" \ PHP_OPCACHE_MEMORY_CONSUMPTION="192" \ PHP_OPCACHE_MAX_WASTED_PERCENTAGE="10" ENV TZ=Europe/Berlin RUN apk add --no-cache --update --virtual buildDeps linux-headers autoconf libzip-dev git \ && apk add curl-dev openssl-dev build-base icu-dev RUN docker-php-ext-configure zip \ && docker-php-ext-install zip \ && docker-php-ext-install pdo_mysql \ && docker-php-ext-configure intl \ && docker-php-ext-install intl WORKDIR /var/www/api # Install composer globally COPY install-composer.sh /var/www/api/ RUN /var/www/api/install-composer.sh # The build for the contious integration FROM production AS ci ENV PHP_OPCACHE_VALIDATE_TIMESTAMPS="1" # Install Xdebug RUN pecl install -f xdebug RUN docker-php-ext-enable xdebug