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.
43 lines
1.1 KiB
43 lines
1.1 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 \
|
|
g++ \
|
|
git \
|
|
vim \
|
|
curl \
|
|
# For composer unzip
|
|
unzip \
|
|
# For ImageMagic
|
|
#libmagickwand-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
|
|
|
|
|