Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description

PHP-CLI Docker-Container

This repository is used to create Docker images for running PHP CLI commands.


  1. Install the pseiffert/php-cli container (optional - this step is performed by Docker automatically when running the container):

     $ docker pull pseiffert/php-cli
  2. Define an bash alias that runs this container whenever composer is invoked on the command line:

     $ echo "alias php='docker run --rm -it -v \$(pwd):/opt pseiffert/php-cli'" >> ~/.bashrc
     $ source ~/.bashrc
  3. Run PHP as always:

     $ php -i
Docker Pull Command
Source Repository