php-fpm custom image
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
php-fpm/Dockerfile

47 lines
1.2 KiB

ARG php_tag
FROM php:$php_tag
# Copy default config
RUN cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini
# Install system packages for PHP extensions
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get -y install --no-install-recommends \
# For build extentions
g++ \
# Cli utils
git \
vim \
curl \
# For composer unzip
unzip \
# For ImageMagic
#libmagickwand-dev \
# For intl
libicu-dev \
# For PDO_PGSQL
libpq-dev \
# For Mongo with ssl
#libssl-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install PHP extensions
RUN docker-php-ext-install \
intl \
opcache \
pdo_mysql \
pdo_pgsql
# Install composer and prestissimo plugin
RUN curl -sS https://getcomposer.org/installer | php -- \
--filename=composer \
--install-dir=/usr/local/bin \
&& chmod 700 /usr/local/bin/composer \
&& composer global require --optimize-autoloader --prefer-dist --no-progress \
"hirak/prestissimo" \
&& composer global dumpautoload --optimize \
&& composer clear-cache