2024-11-22 00:02:01 +00:00
|
|
|
FROM php:8.4-apache
|
2023-07-25 07:56:30 +00:00
|
|
|
|
|
|
|
COPY php.ini /usr/local/etc/php/php.ini
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
libfreetype-dev \
|
|
|
|
libjpeg62-turbo-dev \
|
|
|
|
libpng-dev \
|
|
|
|
libzip-dev \
|
|
|
|
&& docker-php-ext-install mysqli \
|
|
|
|
&& docker-php-ext-install zip \
|
|
|
|
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
|
|
|
&& docker-php-ext-install -j$(nproc) gd
|
|
|
|
|
|
|
|
RUN a2enmod rewrite && service apache2 restart
|