-
-
Save juliocapuano/3f1d45780888d6801eda1fd038acdc16 to your computer and use it in GitHub Desktop.
Composer shell alias to run Composer 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
#!/bin/bash | |
docker run \ | |
--interactive \ | |
--rm \ | |
--user $(id -u):$(id -g) \ | |
--volume ~/.composer:/tmp \ | |
--volume /etc/passwd:/etc/passwd:ro \ | |
--volume /etc/group:/etc/group:ro \ | |
--volume $(pwd):/app \ | |
composer "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment