Created
December 17, 2022 14:46
-
-
Save tomaserlebach/9389335cacb48a0a4b939e1383727a4b to your computer and use it in GitHub Desktop.
Docker Command to install Composer dependencies without having PHP installed
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
docker run --rm \ | |
-u "$(id -u):$(id -g)" \ | |
-v $(pwd):/var/www/html \ | |
-w /var/www/html \ | |
laravelsail/php81-composer:latest \ | |
composer install --ignore-platform-reqs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment