Skip to content

Instantly share code, notes, and snippets.

@ziadoz
Created March 22, 2023 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ziadoz/22d2b6d9763e3492543b970722880971 to your computer and use it in GitHub Desktop.
Save ziadoz/22d2b6d9763e3492543b970722880971 to your computer and use it in GitHub Desktop.
Laravel - Install Composer dependencies via Docker for testsuite
# 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