Public | Automated Build

Last pushed: 2 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.

Usage

  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
Owner
pseiffert
Source Repository