brew install buildpacks/tap/pack
test-buildpack-appというアプリを初期化します
composer create-project laravel/laravel test-buildpack-app
vi Procfile
web: heroku-php-nginx -C nginx.conf public
vi nginx.conf
location / {
try_files $uri @rewriteapp;
}
location @rewriteapp {
rewrite ^(.*)$ /index.php$1 last;
}
test-buildpack-app をビルドします
pack build container-test-buildpack-app --builder heroku/buildpacks:20
docker run --rm -e PORT=8080 -p 8080:8080 container-test-buildpack-app