Created
October 3, 2021 05:25
-
-
Save ijaureguialzo/5b9ea8c247dc71315cf645e7eb477d64 to your computer and use it in GitHub Desktop.
Run PHP, Composer or Node from Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
phpcli() { | |
docker run -it --rm --name php-cli \ | |
--env "PHP_EXTENSIONS=gd intl" \ | |
-v "$PWD:/usr/src/app" thecodingmachine/php:8.0.11-v4-cli-node16 \ | |
"$1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment