Skip to content

Instantly share code, notes, and snippets.

@ivankristianto
Created May 21, 2018 12:47
Show Gist options
  • Save ivankristianto/b252113880b8bc577eabd2b1cfe5af6b to your computer and use it in GitHub Desktop.
Save ivankristianto/b252113880b8bc577eabd2b1cfe5af6b to your computer and use it in GitHub Desktop.
Run PHP cli script with Docker
docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp php:7.0-cli php script.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment