lamp-docker-dev/php/Dockerfile

15 lines
400 B
Docker
Raw Normal View History

2023-07-25 07:56:30 +00:00
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