Public | Automated Build

Last pushed: 4 months ago
Short Description
Extended version of official composer image for normal patch tool and with PHP GD.
Full Description

Docker composer image

This image extends the official Composer image by adding few improvements. It is based on the image of gambry/composer.


  • Patch: official Composer image ships with the BusyBox version of patch, which has limited functionality compared with the normal patch command you may find in Unix-like environment. This image adds a full patch command so for instance you can it in conjunction with 'cweagans/composer-patches'.
  • Added PHP GD (for Drupal 8.5)

To use the composer container directly from the commandline use this or add it to your .bashrc/.zshrc/... file:

composer() {
  tty -s && tty=--tty
  docker run \
    $tty \
    --interactive \
    --rm \
    --user $(id -u):$(id -g) \
    --volume /etc/passwd:/etc/passwd:ro \
    --volume /etc/group:/etc/group:ro \
    --volume $(pwd):/app \
    cbeier/composer "$@"
Docker Pull Command
Source Repository