FROM php:8.3-apache-bookworm AS base RUN a2enmod rewrite include RUN apt update && apt install -y \ curl \ git \ libzip-dev \ unzip \ libpng-dev \ libwebp-dev \ libjpeg62-turbo-dev \ libxmp-dev \ libfreetype6-dev RUN docker-php-ext-configure gd \ --with-webp \ --with-jpeg \ --with-freetype RUN docker-php-ext-install gd zip RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer FROM base COPY ./www/ /var/www/html/ COPY ./000-default.conf /etc/apache2/sites-available/000-default.conf WORKDIR /var/www/html RUN composer install \ --no-interaction