Public | Automated Build

Last pushed: 6 months ago
Short Description
PHP docker images with some extensions (apache, fpm and cli)
Full Description

PHP

Tag names following PHP version.

Branches

  • 7.1-apache
  • 7.1-cli
  • 7.1-fpm
  • 7.1-fpm-alpine
  • 7.0-apache
  • 7.0-cli
  • 7.0-fpm
  • 7.0-fpm-alpine
  • 5.6-apache
  • 5.6-cli
  • 5.6-fpm

To use the latest php version available for a branch, use:

docker pull leandrosilva/php:7.0-apache

PHP extensions included

In all versions:

  • apcu
  • ctype
  • dom
  • fileinfo
  • gd
  • gettext
  • intl
  • json
  • mbstring
  • mcrypt
  • mysqli
  • opcache
  • pcntl
  • pdo
  • pdo_mysql
  • pdo_pgsql
  • phar
  • redis
  • simplexml
  • xdebug
  • zip

Only in 7+ branch:

  • bcmath

Only in 5.6 branch:

  • mssql
  • oci8

Alpine branch does not have oci8 extension yet.

Stating with 7.1.0, the oci8 is removed for being too big.
If you need oci8 extension, please use a Dockerfile like (changing to the desired branch):

FROM leandrosilva/php:7.1-fpm-alpine
COPY build/instantclient-*.zip /tmp/
RUN unzip /tmp/instantclient-basic-linux.x64-12.1.0.2.0.zip -d /home/ \
    && unzip /tmp/instantclient-sdk-linux.x64-12.1.0.2.0.zip -d /home/ \
    && mv /home/instantclient_12_1 /home/oracle \
    && ln -s /home/oracle/libclntsh.so.12.1 /home/oracle/libclntsh.so \
    && ln -s /home/oracle/libclntshcore.so.12.1 /home/oracle/libclntshcore.so \
    && ln -s /home/oracle/libocci.so.12.1 /home/oracle/libocci.so \
    && rm -rf /tmp/instantclient-*.zip
ENV ORACLE_HOME /home/oracle
RUN docker-php-ext-configure oci8 --with-oci8=instantclient,/home/oracle \
    && docker-php-ext-install oci8

Extras installed

  • composer
  • vim
Docker Pull Command
Owner
leandrosilva
Source Repository