Skip to content

Arteric-Lloyd-McGarrigal/docker-google-lighthouse

 
 

Repository files navigation

logo

Google Lighthouse - Docker Image

latest release Docker Pulls Docker Stars Bitcoin donation Litecoin donation PayPal donation Buy me a coffee

Lighthouse analyzes web apps and web pages, collecting modern performance metrics and insights on developer best practices.

This image is greatly inspired from Justin RIBEIRO's work

Usage

docker run --rm --name lighthouse -it -v /path/to/your/report:/home/chrome/reports femtopixel/google-lighthouse <your_site_url> <optional_args>

With <you_site_url> url to your site (e.g. http://www.google.com). You can pass args AFTER the url if you want to.

For example, you can export as json with this command:

docker run --rm --name lighthouse -it -v /path/to/your/report:/home/chrome/reports femtopixel/google-lighthouse http://www.google.com --output json

You can specify CHROME_FLAGS environment variable (-e parameter in your docker command) to be used in chrome-flags parameter. (default: --headless --disable-gpu --no-sandbox)

Further reading on Google Lighthouse

FAQ

  • Error while writing files
Runtime error encountered: { Error: EACCES: permission denied, open '/home/chrome/reports/myawesome_site_admin_heavypage.report.json'
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/home/chrome/reports/myawesome_site_admin_heavypage.report.json' }

Make sure your folder has the write right for others (chmod o+w)

About

Google Lighthouse - Docker Image

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 69.6%
  • Makefile 15.8%
  • Shell 14.6%