Sign inSign up

diegomarangoni/php

By diegomarangoni

•Updated over 10 years ago

Based on official `php` docker image with additional stuff

Image
2

4.3K

diegomarangoni/php repository overview

Based on official php docker image with additional stuff

⁠How to Use

⁠Create a binary /usr/local/bin/php:
#!/bin/bash

exec docker run \
  --rm \
  --privileged=true \
  --net=host \
  -t \
  -v $HOME:$HOME \
  -w $PWD \
  diegomarangoni/php \
  php $@
⁠Add run permission:
chmod +x /usr/local/bin/php
⁠Use it:
php --version

⁠About the additional stuff

If you think something is missing on this image please open a PR in the repository at github⁠

⁠PHP extra modules
  • mongo
  • intl
  • zip
  • apcu
  • opcache
  • mcrypt
  • soap
  • xdebug*
  • memcache
  • gd
  • mbstring

* installed but not enabled by default, if you want to enable, create a entrypoint with:

#!/bin/bash

# install latest version of composer
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

# enable custom extensions
docker-php-ext-enable xdebug

exec $@
⁠PHP extra settings
  • default timezone set to UTC
⁠Extra packages
  • composer
  • nodejs
  • npm
⁠Node NPM modules
  • less

Tag summary

Content type

Image

Digest

sha256:423c8bbd8…

Size

209.8 MB

Last updated

over 10 years ago

docker pull diegomarangoni/php