DEV Community

Discussion on: Composer in Docker

Collapse
 
baohx profile image
Gordon Forsythe

Also volume in your $COMPOSER_HOME or $HOME/.config/composer directory for added speed, and to include any github auth you have set up on your host system.
It's all documented in the docker hub page for composer. hub.docker.com/_/composer
Including --user $(id -u):$(id -g) will keep files from being created as root in your home directory.

Collapse
 
texe profile image
Chris Texe

Thanks for useful comment!