Based on now-examples/php-7-hello-world and Creating Multi-Stage Docker Builds for Laravel
git clone https://github.com/bradlc/now-laravel.git
cd now-laravel
composer install
cp .env.example .env && php artisan key:generate
npm run deploy
To use an env file other than .env
:
DOT_ENV=.env.production npm run deploy