Created
October 12, 2016 22:04
-
-
Save andrewmclagan/8db270b7f0715f3ec897beab22f353e7 to your computer and use it in GitHub Desktop.
Laravel artisan docker entrypoint script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
cd /var/www | |
php artisan optimize --force | |
php artisan config:cache | |
php artisan route:cache | |
exec "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's handy to use
composer install --optimize-autoloader
and addvendor
folder to.dockerignore