Sign inSign up

tsolucio/php74

By tsolucio

•Updated about 2 years ago

Image
0

104

tsolucio/php74 repository overview

FROM php:7.4.2-apache-buster

⁠Surpresses debconf complaints of trying to install apt packages interactively

⁠https://github.com/moby/moby/issues/4032#issuecomment-192327844⁠

ARG DEBIAN_FRONTEND=noninteractive

⁠Update

RUN apt-get -y update --fix-missing &&
apt-get upgrade -y &&
apt-get --no-install-recommends install -y apt-utils &&
rm -rf /var/lib/apt/lists/*

⁠Install useful tools and install important libaries

RUN apt-get -y update &&
apt-get -y --no-install-recommends install nano wget
dialog
libsqlite3-dev
libsqlite3-0 &&
apt-get -y --no-install-recommends install default-mysql-client
zlib1g-dev
libxml2
libxml2-dev
libzip-dev
libicu-dev &&
apt-get -y --no-install-recommends install --fix-missing apt-utils
build-essential
git
curl
libonig-dev &&
apt-get -y --no-install-recommends install --fix-missing libcurl4
libcurl4-openssl-dev
libgmp-dev
zip
cron
openssl &&
rm -rf /var/lib/apt/lists/* &&
curl -sS https://getcomposer.org/installer⁠ | php -- --install-dir=/usr/local/bin --filename=composer

⁠Install xdebug, just for development.

#RUN pecl install xdebug-2.8.0 && \

⁠docker-php-ext-enable xdebug

⁠Install redis

RUN pecl install redis-5.1.1 &&
docker-php-ext-enable redis

⁠Install imagick

RUN apt-get update &&
apt-get -y --no-install-recommends install --fix-missing libmagickwand-dev &&
rm -rf /var/lib/apt/lists/* &&
pecl install imagick &&
docker-php-ext-enable imagick

⁠Install OPcache

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

⁠Other PHP7 Extensions

RUN docker-php-ext-install pdo_mysql &&
docker-php-ext-install pdo_sqlite &&
docker-php-ext-install mysqli &&
docker-php-ext-install curl &&
docker-php-ext-install tokenizer &&
docker-php-ext-install json &&
docker-php-ext-install zip &&
docker-php-ext-install -j$(nproc) intl &&
docker-php-ext-install mbstring &&
docker-php-ext-install gettext &&
docker-php-ext-install calendar &&
docker-php-ext-install gmp &&
docker-php-ext-install exif &&
docker-php-ext-install bcmath &&
docker-php-ext-install xml &&
docker-php-ext-install xmlrpc &&
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/* &&
PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl &&
docker-php-ext-install imap

⁠Install Freetype

RUN apt-get -y update &&
apt-get --no-install-recommends install -y libfreetype6-dev
libjpeg62-turbo-dev
libpng-dev &&
rm -rf /var/lib/apt/lists/* &&
docker-php-ext-configure gd --enable-gd --with-freetype --with-jpeg &&
docker-php-ext-install gd

⁠Enable apache modules

RUN a2enmod rewrite headers

⁠Cleanup

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

Tag summary

Content type

Image

Digest

sha256:f0db32852…

Size

296 MB

Last updated

about 2 years ago

docker pull tsolucio/php74:1.0