Public Repository

Last pushed: 4 months ago
Short Description
php 7 cli
Full Description

PHP-cliFROM php:7.1.5

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng12-dev \
libpq-dev \
gcc \
g++ \
libicu-dev \
libxml2-dev \
git \
vim \
make \
zip \
unzip \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
pkg-config \
libsasl2-dev \
libmagickwand-dev --no-install-recommends \
&& docker-php-ext-configure intl \
&& docker-php-ext-install mbstring \
&& docker-php-ext-install intl \
&& docker-php-ext-install zip \
&& docker-php-ext-install pdo_mysql \
&& docker-php-ext-install pdo_pgsql \
&& docker-php-ext-install soap \
&& docker-php-ext-install bcmath \
&& docker-php-ext-install -j$(nproc) iconv mcrypt \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-install opcache \
&& docker-php-ext-install mysqli \
&& pecl install imagick \
&& docker-php-ext-enable imagick \
&& pecl install apcu \
&& docker-php-ext-enable apcu \
&& pecl install xdebug-2.5.4 \
&& docker-php-ext-enable xdebug \
&& apt-get purge --auto-remove -y g++ \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

ENV PHPREDIS_VERSION php7

RUN apt-get update
RUN apt-get install -y g++ build-essential
RUN curl -L -o /tmp/redis.tar.gz https://github.com/phpredis/phpredis/archive/$PHPREDIS_VERSION.tar.gz \
&& mkdir /tmp/redis \
&& tar -xf /tmp/redis.tar.gz -C /tmp/redis \
&& rm /tmp/redis.tar.gz \
&& ( \
cd /tmp/redis/phpredis-$PHPREDIS_VERSION \
&& phpize \
&& ./configure \
&& make \
&& make install \
) \
&& rm -r /tmp/redis \
&& docker-php-ext-enable redis
RUN curl https://getcomposer.org/download/1.3.2/composer.phar > /usr/local/bin/composer
RUN chmod +x /usr/local/bin/composer

Docker Pull Command
Owner
kinncj

Comments (0)