WebStack/php-dockerfile

20 lines
733 B
Plaintext
Raw Permalink Normal View History

2024-02-11 13:27:43 +01:00
FROM php:8.1-fpm
2024-02-11 13:43:38 +01:00
ADD php-logging.conf /usr/local/etc/php-fpm.d/zz-log.conf
2024-02-11 13:27:43 +01:00
# Installing dependencies for the PHP modules
RUN apt-get update && \
apt-get install -y zip curl libcurl3-dev libzip-dev libpng-dev libonig-dev libxml2-dev
# libonig-dev is needed for oniguruma which is needed for mbstring
# Installing additional PHP modules
RUN docker-php-ext-install curl gd mbstring mysqli pdo pdo_mysql xml
# Install and configure ImageMagick
RUN apt-get install -y libmagickwand-dev
RUN pecl install imagick
RUN docker-php-ext-enable imagick
RUN apt-get purge -y libmagickwand-dev
# Install Composer so it's available
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer