Sign inSign up

tsolucio/php72

By tsolucio

•Updated about 2 years ago

Image
0

99

tsolucio/php72 repository overview

#Quickfix - Basebox for PHP7.2 Library now uses Debian "10" Buster, superceeding #libcurl3, stretch is most compatible at this time whilst devs workout backport. #https://github.com/docker-library/php/issues/865⁠

FROM php:7.2-apache-stretch

#Surpresses debconf complaints of trying to install apt packages interactively #https://github.com/moby/moby/issues/4032#issuecomment-192327844⁠

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get -y update --fix-missing --no-install-recommends RUN apt-get -y upgrade

⁠Install useful tools

RUN apt-get -yq install apt-utils nano wget dialog

⁠Install important libraries

RUN apt-get -y install --fix-missing apt-utils build-essential git curl libcurl3 libcurl3-dev libxml2 libxml2-dev libzip-dev zip cron openssl

⁠Composer

RUN curl -sS https://getcomposer.org/installer⁠ | php -- --install-dir=/usr/local/bin --filename=composer

⁠Install xdebug, just for development

#RUN pecl install xdebug-2.6.0 #RUN docker-php-ext-enable xdebug

⁠Install redis

RUN pecl install redis-4.0.1 RUN docker-php-ext-enable redis

⁠Other PHP7 Extensions

RUN apt-get -y install libsqlite3-dev libsqlite3-0 mysql-client RUN docker-php-ext-install pdo_mysql RUN docker-php-ext-install pdo_sqlite RUN docker-php-ext-install mysqli

RUN docker-php-ext-install curl RUN docker-php-ext-install tokenizer RUN docker-php-ext-install json

RUN apt-get -y install zlib1g-dev RUN docker-php-ext-install zip

RUN apt-get -y install libicu-dev RUN docker-php-ext-install -j$(nproc) intl

RUN docker-php-ext-install mbstring RUN docker-php-ext-install gettext RUN docker-php-ext-install bcmath

RUN docker-php-ext-install xml RUN docker-php-ext-install xmlrpc

RUN docker-php-ext-install soap

⁠Install imap

RUN apt-get -y update &&
apt-get --no-install-recommends install -y libc-client-dev
libkrb5-dev &&
rm -r /var/lib/apt/lists/* &&
docker-php-ext-configure imap --with-kerberos --with-imap-ssl &&
docker-php-ext-install imap

RUN apt-get -y update RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ RUN docker-php-ext-install -j$(nproc) gd

⁠Install OPcache

RUN docker-php-ext-configure opcache --enable-opcache && docker-php-ext-install opcache

⁠Enable apache modules

RUN a2enmod rewrite headers

⁠Start cron and apache2 service

RUN sed -i 's/^exec /service cron start\n\nexec /' /usr/local/bin/apache2-foreground

Tag summary

Content type

Image

Digest

sha256:4af7daa56…

Size

310.8 MB

Last updated

about 2 years ago

docker pull tsolucio/php72:1.0