Skip to content

Instantly share code, notes, and snippets.

@juliocapuano
Forked from matriphe/composer
Created March 5, 2023 03:41
Show Gist options
  • Save juliocapuano/3f1d45780888d6801eda1fd038acdc16 to your computer and use it in GitHub Desktop.
Save juliocapuano/3f1d45780888d6801eda1fd038acdc16 to your computer and use it in GitHub Desktop.
Composer shell alias to run Composer Docker
#!/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