Skip to content

Instantly share code, notes, and snippets.

Created March 22, 2023 13:52
What would you like to do?
Laravel - Install Composer dependencies via Docker for testsuite
# Put this inside /bin/ to install Laravel's dependencies before running testsuite in Docker.
docker run \
-it \
--rm \
-w /data \
-v ${PWD}:/data:delegated \
--entrypoint /bin/sh \ -c 'curl -o /tmp/composer-setup.php && 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