Last active
April 16, 2022 19:55
-
-
Save vicentimartins/918f7e3d0524169d92ba2fa12694e0e8 to your computer and use it in GitHub Desktop.
Run php without php installed at localhost
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
#!/bin/sh | |
docker run --network host --rm -e HOME="$HOME" -u "$(id -u)":"$(id -g)" -v "$HOME":"$HOME" -w "$PWD" php:8.1-fpm php "$@" | |
exit $? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment