Skip to content

Instantly share code, notes, and snippets.

@ToshY
Last active February 9, 2024 20:39
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 ToshY/ace74f6b695f3ba029ed05598b24613c to your computer and use it in GitHub Desktop.
Save ToshY/ace74f6b695f3ba029ed05598b24613c to your computer and use it in GitHub Desktop.
Docker run with composer lts image

Composer

docker run --rm -it -v $(pwd):/app --entrypoint composer:lts install

PHP

docker run --rm -it -v $(pwd):/app --entrypoint /bin/sh composer:lts -c 'php -v'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment