Sign inSign up

elbcoast/php

By elbcoast

Updated about 8 years ago

Php images optimized for web development

Image
1

4.9K

elbcoast/php repository overview

What is this?

These images provide an easy, ready-to-use solution for php web development with docker. All images are based on the official php alpine images for 7.0, 7.1 and 7.2 with additional php modules and composer installed. Besides that, they use gosu to execute commands as a non-root user.

Cherry on top: Files created on volumes inherit your local user ID and group ID.

Flavors

There are three different "flavors":

  • Plain PHP
  • With XDebug
  • With Blackfire support

Plain PHP

The plain PHP images have the following extra modules enabled:

  • iconv
  • mcrypt (7.0 and 7.1 images)
  • mbstring
  • intl
  • gd
  • pdo
  • pdo_mysql
  • zip
  • exif
  • xml

Use this image for previews or for tasks on the console, where xdebug would be a serious performance impact (e.g. for installing composer packages).

With XDebug

This image extends the Plain PHP image and comes with XDebug support. The XDebug configuration can be found under /usr/local/etc/php/conf.d/xdebug.ini (in case you want to override it) and looks like this:

xdebug.remote_enable=on
xdebug.remote_autostart=1
xdebug.remote_connect_back=off
xdebug.remote_port=9000

With Blackfire support

If you want to do some performance testing with Blackfire.io, you can use this image.

Available Tags

  • 7.0, 7.0.30 Plain PHP 7.0
  • 7.0-xdebug, 7.0.30-xdebug PHP 7.0 with XDebug support
  • 7.0-blackfire, 7.0.30-blackfire PHP 7.0 with Blackfire support
  • 7.1, 7.1.17 Plain PHP 7.1
  • 7.1-xdebug, 7.1.17-xdebug PHP 7.1 with XDebug support
  • 7.1-blackfire, 7.1.17-blackfire PHP 7.1 with Blackfire support
  • 7.2, 7.2.5 Plain PHP 7.2
  • 7.2-xdebug, 7.2.5-xdebug PHP 7.2 with XDebug support
  • 7.2-blackfire, 7.2.5-blackfire PHP 7.2 with Blackfire support

Usage

Best way to use these images is in conjunction with docker-compose. Examples are included in the corresponding github repository.

Source

The dockerfiles along with a make file to build the images on your own can be found here.

Tag summary

Content type

Image

Digest

Size

56.9 MB

Last updated

about 8 years ago

docker pull elbcoast/php:7.2-blackfire