- Install PHP Compose dependencies locally, assuming current directory has a composer.json file already defined.
- This will run through the install and save the vendors/ directory in your current working directly.
- This is useful when you don't have the required php or composer version or just want to ensure you don't muck up your local with any odd requirements.
docker run --rm \
--volume $(pwd):/var/www \
--workdir /var/www \
composer:latest \
install --ignore-platform-reqs --optimize-autoloader --no-suggest