An open API service indexing awesome lists of open source software.

https://github.com/robiningelbrecht/docker-browsershot

A docker container that allows you to use the Spatie\Browsershot package
https://github.com/robiningelbrecht/docker-browsershot

Last synced: 3 months ago
JSON representation

A docker container that allows you to use the Spatie\Browsershot package

Awesome Lists containing this project

README

          

Docker container for Spatie's Browsershot


Docker


License

------

A docker container that allows you to use the [Spatie\Browsershot](https://github.com/spatie/browsershot) package. Currently it requires `^php8.1`, feel free to fork and change. Consider giving it a ⭐ when you do.

## Installation & usage

* Clone this repository `git clone git@github.com:robiningelbrecht/docker-browsershot.git`
* Run `docker-compose up -d --build` to spin up and build the required container
* Run `docker-compose run --rm php-cli composer install` to install PHP dependencies
* Run `docker-compose run --rm php-cli npm install` to install Node dependencies
* Run the example by executing `docker-compose run --rm php-cli php example.php`