This is an example of a Laravel application running on distroless-php
.
$ git clone --recursive "https://github.com/distroless-php/skeleton-laravel.git" "skeleton-laravel"
$ cd "skeleton-laravel"
$ docker compose build --pull
$ docker compose run --rm cli -c 'cp .env.example .env && composer install && php artisan key:generate && php artisan migrate --force --seed'
$ docker compose up -d
and open http://localhost:8931
🥬 in your browser.
if you need check the connection to the services, open http://localhost:8931/test-connections
in your browser.
$ docker compose run --rm cli
$ php artisan app:test-connections
Testing database connections...
- database connection mysql is OK
- database connection mariadb is OK
- database connection pgsql is OK
- database connection sqlite is OK
Testing redis connections...
- redis connection default is OK
- redis connection cache is OK