FROM php:8.3-apache ARG COMPOSER_HASH # Configure php COPY /docker/typo3/conf/memory.ini /usr/local/etc/php/conf.d/ COPY /docker/typo3/conf/apc.ini /usr/local/etc/php/conf.d/ COPY /docker/typo3/conf/xdebug.ini /usr/local/etc/php/conf.d/ # Configure apache COPY /docker/typo3/conf/typo3.conf /etc/apache2/sites-available/ # Set workdir WORKDIR /var/www/typo3 RUN \ # Install utilities and php extensions apt-get clean && apt-get update && apt-get install -y locales; \ pecl install apcu-5.1.17 && pecl install apcu_bc && pecl install imagick-3.4.3RC2; \ apt-get install -y --no-install-recommends zip unzip git nano wget less \ libxml2-dev libpq-dev libzip-dev zlib1g-dev libonig-dev \ libfreetype6-dev libpng-dev libjpeg-dev libicu-dev libwebp-dev \ libjpeg62-turbo-dev libxpm-dev graphicsmagick; \ docker-php-ext-configure gd --with-libdir=/usr/include/ --with-jpeg --with-freetype; \ docker-php-ext-configure intl; \ docker-php-ext-install opcache intl pdo_mysql exif mbstring mysqli gd zip soap; \ docker-php-ext-enable opcache; \ # Install and enable xdebug pecl install xdebug-3.3.2; \ docker-php-ext-enable xdebug; \ # Set locale echo 'fr_FR.UTF-8 UTF-8' > /etc/locale.gen; \ locale-gen; \ # Configure apache a2enmod alias authz_core autoindex deflate expires filter headers rewrite setenvif; \ rm /etc/apache2/sites-available/000-default.conf && rm /etc/apache2/sites-available/default-ssl.conf; \ a2ensite typo3; \ service apache2 restart; # Set environment variables ENV LANG fr_FR.UTF-8 ENV LANGUAGE fr_FR:fr ENV LC_ALL fr_FR.UTF-8 # CLI shortcut COPY /docker/typo3/conf/cli /var/www/typo3/ # Declare the entrypoint.sh file COPY ./docker/typo3/entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]