Skip to content

Instantly share code, notes, and snippets.

@mdurys
Created January 24, 2019 17:19
Show Gist options
  • Select an option

  • Save mdurys/e52c1a87310a065c98d7a9b9776002b7 to your computer and use it in GitHub Desktop.

Select an option

Save mdurys/e52c1a87310a065c98d7a9b9776002b7 to your computer and use it in GitHub Desktop.
Setting up Symfony project with Composer in Docker
docker run --rm --interactive --tty --volume $PWD:/app --user $(id -u):$(id -g) composer create-project symfony/skeleton my-api
cd my-api
docker run --rm --interactive --tty --volume $PWD:/app --user $(id -u):$(id -g) composer require --dev phpunit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment