Public | Automated Build

Last pushed: a year ago
Short Description
Basic php fpm apline image with gd, mcrypt, mysql, pdo, zip, intl and iconv (libiconv) extensions.
Full Description

Supported tags and respective Dockerfile links

About this image.

This image is based on official PHP fpm alpine image and includes these extensions:

  • gd
  • mcrypt
  • mysql
  • pdo
  • zip
  • intl
  • iconv (libiconv build from source)

How to use this image.

Create a Dockerfile in your PHP project

FROM grandmedia/php:7-fpm-alpine
COPY config/php.ini /usr/local/etc/php/
COPY src/ /var/www/html/

Where src/ is the directory containing all your php code and config/ contains your php.ini file. Then, run the commands to build and run the Docker image:

$ docker build -t my-php-app .
$ docker run -d --name my-running-app my-php-app
Docker Pull Command
Owner
grandmedia
Source Repository