lamp-docker-dev/php/Dockerfile

15 lines
400 B
Docker
Raw Normal View History

2024-10-19 13:01:40 +00:00
FROM php:8.3-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