Sign inSign up

geshan/php7-alpine

By geshan

Updated over 10 years ago

This is a docker container for PHP 7 mainly the cli. Alpine Linux base image and compiles PHP7.

Image
3

10K+

geshan/php7-alpine repository overview

Deprectated

Just use the official PHP images from docker hub it has PHP7 on Alpine between 98 - 170 Mbs which is amazing.

Docker Container for PHP 7

This is a docker container for PHP 7 mainly the cli. Alpine Linux base image and compiles PHP after cloning it from php source git repo. This image is based on this tutorial.

Pull it from docker registry

To pull the docker image you can do it with:

docker pull geshan/php7-alpine

Usage

Then run the following commands to run php 7:

docker run -v $(pwd):/var/www geshan/php7-alpine "php --version"

Commands inside the container

Run:

docker run -it $(pwd):/var/www geshan/php7-alpine /bin/sh

Then run your commands with php.

Tag summary

Content type

Image

Digest

sha256:ffa3592dd

Size

383.8 MB

Last updated

over 10 years ago

docker pull geshan/php7-alpine