Skip to content

Instantly share code, notes, and snippets.

@mjarkk
Created January 22, 2019 15:33
Show Gist options
  • Save mjarkk/fa1952d0c407875439b8ea74bed460a4 to your computer and use it in GitHub Desktop.
Save mjarkk/fa1952d0c407875439b8ea74bed460a4 to your computer and use it in GitHub Desktop.
A quick and dirty way to run a Laravel app in a container
#!/bin/bash
# After running this:
# cd /app
# composer install
# php artisan serve
docker run \
-it \
--net=host \
--mount type=bind,source=/home/mark/Documents/bla/bla/bla/laravelApp,target=/app \
--rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment