lamp-docker-dev/php/Dockerfile
2023-07-25 09:56:30 +02:00

15 lines
400 B
Docker

FROM php:8.0-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