lamp-docker-dev/php/Dockerfile

15 lines
400 B
Docker

FROM php:8.3-apache
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