Created
March 22, 2023 13:52
-
-
Save ziadoz/22d2b6d9763e3492543b970722880971 to your computer and use it in GitHub Desktop.
Laravel - Install Composer dependencies via Docker for testsuite
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
# Put this inside /bin/test.sh to install Laravel's dependencies before running testsuite in Docker. | |
docker run \ | |
-it \ | |
--rm \ | |
-w /data \ | |
-v ${PWD}:/data:delegated \ | |
--entrypoint /bin/sh \ | |
registry.gitlab.com/grahamcampbell/php:8.1-base -c 'curl -o /tmp/composer-setup.php https://getcomposer.org/installer && php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer && composer install' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment