Skip to content

Instantly share code, notes, and snippets.

@vicentimartins
Last active April 16, 2022 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vicentimartins/918f7e3d0524169d92ba2fa12694e0e8 to your computer and use it in GitHub Desktop.
Save vicentimartins/918f7e3d0524169d92ba2fa12694e0e8 to your computer and use it in GitHub Desktop.
Run php without php installed at localhost
#!/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